blob: 4ec4d38132f1b1cb46d6e5a61e39e3265515228c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--- nfs-utils-1.2.5.orig/utils/mountd/fsloc.c 2011-09-24 13:55:15.000000000 +0200
+++ nfs-utils-1.2.5/utils/mountd/fsloc.c 2013-07-11 11:01:30.000000000 +0200
@@ -126,7 +126,7 @@ static struct servers *method_list(char
struct servers *rv=NULL;
xlog(L_NOTICE, "method_list(%s)\n", 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);
|