BSD 4_2 release
[unix-history] / usr / src / ucb / compact / compact.c
index 4f5cfac..9eb6667 100644 (file)
@@ -1,3 +1,7 @@
+#ifndef lint
+static char sccsid[] = "@(#)compact.c  4.4 (Berkeley) 8/11/83";
+#endif
+
 /*
  *  Adaptive Huffman code input to output
  *
 /*
  *  Adaptive Huffman code input to output
  *
@@ -50,7 +54,7 @@ char *argv [ ];
                        cp = fname;
                        for (l = 0; l < (LNAME - 3) && (*cp = argv [i][l]); l++)
                                if (*cp++ == '/') m = l;
                        cp = fname;
                        for (l = 0; l < (LNAME - 3) && (*cp = argv [i][l]); l++)
                                if (*cp++ == '/') m = l;
-                       if (l >= (LNAME - 3) || (l - m) > 13) {
+                       if (l >= (LNAME - 3) || (l - m) > MAXNAMLEN - 1) {
                                fprintf (stderr, "%s: File name too long\n", argv [i]);
                                if (i == argc - 1) break;
                                continue;
                                fprintf (stderr, "%s: File name too long\n", argv [i]);
                                if (i == argc - 1) break;
                                continue;