patch-utils_mountd_fsloc_c 500 B

1234567891011
  1. --- nfs-utils-1.2.1.orig/utils/mountd/fsloc.c 2009-11-04 12:13:56.000000000 +0100
  2. +++ nfs-utils-1.2.1/utils/mountd/fsloc.c 2009-12-25 19:26:25.000000000 +0100
  3. @@ -126,7 +126,7 @@ static struct servers *method_list(char
  4. struct servers *rv=NULL;
  5. xlog(L_NOTICE, "method_list(%s)\n", 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);