patch-utils_mountd_fsloc_c 492 B

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