]> diplodocus.org Git - nmh/blobdiff - sbr/fmt_compile.c
Fix invalid pointer arithmetic.
[nmh] / sbr / fmt_compile.c
index 9cb92f8f16b7b20a79ff4671a0ab26f667cd1c2d..2ad46cf57e9d7efe13c8b4d1ba6d06359e5641fa 100644 (file)
@@ -352,7 +352,7 @@ lookup(char *name)
 
     while ((nm = t->name)) {
        if (*nm == c && strcmp (nm, name) == 0)
-           return (ftbl = t);
+           return ftbl = t;
 
        t++;
     }
@@ -488,9 +488,7 @@ do_spec(char *sp)
 {
     char *cp = sp;
     int c;
-#ifndef        lint
     int ljust = 0;
-#endif /* not lint */
     int wid = 0;
     char fill = ' ';