blob: 7cb0c4ca080a5cbe24d075ae11d3de05de11d8a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- nfs-utils-1.2.9.orig/utils/mountd/fsloc.c 2013-11-05 21:41:27.000000000 +0100
+++ nfs-utils-1.2.9/utils/mountd/fsloc.c 2014-02-21 17:01:23.000000000 +0100
@@ -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);
|