]> andersk Git - moira.git/blobdiff - lib/idno.c
fixed a cast
[moira.git] / lib / idno.c
index 7d11372c4a31bf69f6c6f59eef797a6a6c5e06b6..be166df2ba7279e9fb416117ab6ed351eae6a33b 100644 (file)
@@ -1,9 +1,14 @@
 /* $Header$
  *
  * Routines to encrypt ID's
+ *
+ *  (c) Copyright 1988 by the Massachusetts Institute of Technology.
+ *  For copying and distribution information, please see the file
+ *  <mit-copyright.h>.
  */
 
-#include <strings.h>
+#include <mit-copyright.h>
+#include <string.h>
 #include <ctype.h>
 
 
@@ -19,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.030772 seconds and 4 git commands to generate.