patch-utils_mountd_fsloc_c 550 B

123456789101112
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- nfs-utils-1.1.3.orig/utils/mountd/fsloc.c 2008-07-27 23:01:45.000000000 +0200
  3. +++ nfs-utils-1.1.3/utils/mountd/fsloc.c 2008-10-06 16:46:49.000000000 +0200
  4. @@ -126,7 +126,7 @@ static struct servers *method_list(char
  5. struct servers *rv=NULL;
  6. xlog(L_NOTICE, "method_list(%s)\n", data);
  7. - for (ptr--, listsize=1; ptr; ptr=index(ptr, ':'), listsize++)
  8. + for (ptr--, listsize=1; ptr; ptr=strchr(ptr, ':'), listsize++)
  9. ptr++;
  10. list = malloc(listsize * sizeof(char *));
  11. copy = strdup(data);