SCCS-vsn: usr.bin/uucp/uulog/uulog.c 5.4
SCCS-vsn: usr.bin/uucp/uupoll/uupoll.c 5.4
-static char sccsid[] = "@(#)uulog.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)uulog.c 5.4 (Berkeley) %G%";
- 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;
-static char sccsid[] = "@(#)uupoll.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)uupoll.c 5.4 (Berkeley) %G%";
int ret;
char wrkpre[MAXFULLNAME];
char file[MAXFULLNAME];
int ret;
char wrkpre[MAXFULLNAME];
char file[MAXFULLNAME];
int nocall = 0;
if (argc < 2) {
int nocall = 0;
if (argc < 2) {
continue;
}
/* Remove any STST file that might stop the poll */
continue;
}
/* Remove any STST file that might stop the poll */
- sprintf(wrkpre, "%s/LCK..%.7s", LOCKDIR, argv[0]);
+ sprintf(wrkpre, "%s/LCK..%.*s", LOCKDIR, MAXBASENAME, argv[0]);
if (access(wrkpre, 0) < 0)
rmstat(argv[0]);
if (access(wrkpre, 0) < 0)
rmstat(argv[0]);
- sprintf(wrkpre, "%c.%.7s", CMDPRE, argv[0]);
+ sprintf(wrkpre, "%c.%.*s", CMDPRE, SYSNSIZE, argv[0]);
if (!iswrk(file, "chk", Spool, wrkpre)) {
if (!iswrk(file, "chk", Spool, wrkpre)) {
- sprintf(file, "%s/%c.%.7s%cPOLL", subdir(Spool, CMDPRE),
- CMDPRE, argv[0], grade);
+ sprintf(file, "%s/%c.%.*s%cPOLL", subdir(Spool, CMDPRE),
+ CMDPRE, SYSNSIZE, argv[0], grade);
close(creat(file, 0666));
}
/* Attempt the call */
close(creat(file, 0666));
}
/* Attempt the call */