summaryrefslogtreecommitdiff
path: root/package/nfs-utils/patches/patch-utils_mount_error_c
blob: 641a482f267a8ce6a135527d894538a862a866c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- nfs-utils-1.2.1.orig/utils/mount/error.c	2009-11-04 12:13:56.000000000 +0100
+++ nfs-utils-1.2.1/utils/mount/error.c	2009-12-25 19:32:49.000000000 +0100
@@ -62,7 +62,7 @@ static int rpc_strerror(int spos)
 	char *tmp;
 
 	if (estr) {
-		if ((ptr = index(estr, ':')))
+		if ((ptr = strchr(estr, ':')))
 			estr = ++ptr;
 
 		tmp = &errbuf[spos];