patch-utils_mountd_fsloc_c 492 B

1234567891011
  1. --- nfs-utils-1.3.0.orig/utils/mountd/fsloc.c 2014-03-25 16:12:07.000000000 +0100
  2. +++ nfs-utils-1.3.0/utils/mountd/fsloc.c 2014-05-13 20:23:33.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);