summaryrefslogtreecommitdiff
path: root/package/nfs-utils/patches/patch-utils_mount_error_c
blob: 8f841e672792f03a2da123700921c494866e67ee (plain)
1
2
3
4
5
6
7
8
9
10
11
--- nfs-utils-1.2.8.orig/utils/mount/error.c	2013-04-22 18:47:20.000000000 +0200
+++ nfs-utils-1.2.8/utils/mount/error.c	2013-08-13 10:46:19.000000000 +0200
@@ -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];