5.5.2-warnings.patch 386 B

12345678910111213
  1. diff -ru umoria.orig/unix/unix.c umoria/unix/unix.c
  2. --- umoria.orig/unix/unix.c 2014-11-01 02:45:07.375535783 -0400
  3. +++ umoria/unix/unix.c 2014-11-01 02:45:58.575820065 -0400
  4. @@ -315,7 +315,7 @@
  5. user[0] = '\0';
  6. file++;
  7. - while (*file != '/' && i < sizeof(user))
  8. + while (*file != '/' && i < sizeof(user) - 1)
  9. user[i++] = *file++;
  10. user[i] = '\0';
  11. if (i == 0)