summaryrefslogtreecommitdiff
path: root/package/nfs-utils/patches/patch-utils_mountd_fsloc_c
blob: 36e7b6c29e3b9570e8948b123a69a1c5a795704b (plain)
1
2
3
4
5
6
7
8
9
10
11
--- nfs-utils-1.2.8.orig/utils/mountd/fsloc.c	2013-04-22 18:47:20.000000000 +0200
+++ nfs-utils-1.2.8/utils/mountd/fsloc.c	2013-08-13 10:57:48.000000000 +0200
@@ -127,7 +127,7 @@ static struct servers *method_list(char
 	bool v6esc = false;
 
 	xlog(L_NOTICE, "method_list(%s)", data);
-	for (ptr--, listsize=1; ptr; ptr=index(ptr, ':'), listsize++)
+	for (ptr--, listsize=1; ptr; ptr=strchr(ptr, ':'), listsize++)
 		ptr++;
 	list = malloc(listsize * sizeof(char *));
 	copy = strdup(data);