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