]> diplodocus.org Git - nmh/blobdiff - sbr/atooi.c
Fix invalid pointer arithmetic.
[nmh] / sbr / atooi.c
index ab58cb46cb7693d531310335d2628efb4c0822e7..128f917c2ee044ce015ea33a27f93ece7b92a0c8 100644 (file)
@@ -1,8 +1,8 @@
-
-/*
- * atooi.c -- octal version of atoi()
+/* atooi.c -- octal version of atoi()
  *
- * $Id$
+ * This code is Copyright (c) 2002, by the authors of nmh.  See the
+ * COPYRIGHT file in the root directory of the nmh distribution for
+ * complete copyright information.
  */
 
 #include <h/mh.h>
@@ -11,7 +11,7 @@
 int
 atooi(char *cp)
 {
-    register int i, base;
+    int i, base;
 
     i = 0;
     base = 8;