| 1234567891011121314151617181920212223242526272829 | --- nfs-utils-1.2.1.orig/support/nfs/nfs_mntent.c	2009-11-04 12:13:56.000000000 +0100+++ nfs-utils-1.2.1/support/nfs/nfs_mntent.c	2009-12-25 19:33:24.000000000 +0100@@ -9,7 +9,7 @@  */  #include <stdio.h>-#include <string.h>		/* for index */+#include <string.h>		/* for strchr */ #include <ctype.h>		/* for isdigit */ #include <sys/stat.h>		/* for umask */ @@ -163,7 +163,7 @@ nfs_getmntent (mntFILE *mfp) { 			return NULL;  		mfp->mntent_lineno++;-		s = index (buf, '\n');+		s = strchr (buf, '\n'); 		if (s == NULL) { 			/* Missing final newline?  Otherwise extremely */ 			/* long line - assume file was corrupted */@@ -171,7 +171,7 @@ nfs_getmntent (mntFILE *mfp) { 				fprintf(stderr, _("[mntent]: warning: no final " 					"newline at the end of %s\n"), 					mfp->mntent_file);-				s = index (buf, 0);+				s = strchr (buf, 0); 			} else { 				mfp->mntent_errs = 1; 				goto err;
 |