patch-mount_mount_mntent_c 706 B

1234567891011121314151617181920
  1. --- util-linux-ng-2.15.orig/mount/mount_mntent.c 2009-02-24 16:39:30.000000000 +0100
  2. +++ util-linux-ng-2.15/mount/mount_mntent.c 2009-06-22 22:59:15.000000000 +0200
  3. @@ -157,7 +157,7 @@ my_getmntent (mntFILE *mfp) {
  4. return NULL;
  5. mfp->mntent_lineno++;
  6. - s = index (buf, '\n');
  7. + s = strchr (buf, '\n');
  8. if (s == NULL) {
  9. /* Missing final newline? Otherwise extremely */
  10. /* long line - assume file was corrupted */
  11. @@ -165,7 +165,7 @@ my_getmntent (mntFILE *mfp) {
  12. fprintf(stderr, _("[mntent]: warning: no final "
  13. "newline at the end of %s\n"),
  14. mfp->mntent_file);
  15. - s = index (buf, 0);
  16. + s = strchr (buf, 0);
  17. } else {
  18. mfp->mntent_errs = 1;
  19. goto err;