]> andersk Git - moira.git/blobdiff - lib/idno.c
Added an extra argument to the afs_quota_adj()... disk usage.
[moira.git] / lib / idno.c
index a0a58014e06df6276a58ec45c9ca854879ad2841..be166df2ba7279e9fb416117ab6ed351eae6a33b 100644 (file)
@@ -8,7 +8,7 @@
  */
 
 #include <mit-copyright.h>
-#include <strings.h>
+#include <string.h>
 #include <ctype.h>
 
 
@@ -24,7 +24,7 @@ char *str;
 {
     char *hyphen;
 
-    while ((hyphen = index(str, '-')) != (char *)0)
+    while ((hyphen = strchr(str, '-')) != (char *)0)
        (void) strcpy(hyphen, hyphen + 1);
 }
 
This page took 0.031861 seconds and 4 git commands to generate.