fixes from rick adams
[unix-history] / usr / src / usr.bin / uucp / uulog / uulog.c
index 89062aa..1131600 100644 (file)
@@ -1,5 +1,5 @@
 #ifndef lint
 #ifndef lint
-static char sccsid[] = "@(#)uulog.c    5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)uulog.c    5.4 (Berkeley) %G%";
 #endif
 
 #include "uucp.h"
 #endif
 
 #include "uucp.h"
@@ -30,8 +30,8 @@ char *argv[];
                                argv++;
                                argc--;
                        }
                                argv++;
                                argc--;
                        }
-                       if (strlen(sys) > 7)
-                               sys[7] = '\0';
+                       if (strlen(sys) > MAXBASENAME)
+                               sys[MAXBASENAME] = '\0';
                        if (versys(&sys) != SUCCESS){
                                fprintf(stderr,"uulog: unknown system %s\n", sys);
                                sys = NULL;
                        if (versys(&sys) != SUCCESS){
                                fprintf(stderr,"uulog: unknown system %s\n", sys);
                                sys = NULL;