From: Keith Bostic Date: Sat, 23 Jul 1988 03:04:24 +0000 (-0800) Subject: FILENAME is wrong, use MAXPATHLEN X-Git-Tag: BSD-4_3_Net_1-Snapshot-Development~1147 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/f5d8beae31a161eca2f6e901612a967e1491b8e0 FILENAME is wrong, use MAXPATHLEN SCCS-vsn: usr.bin/more/help.c 5.2 --- diff --git a/usr/src/usr.bin/more/help.c b/usr/src/usr.bin/more/help.c index 7e758a2114..9a4766f5cf 100644 --- a/usr/src/usr.bin/more/help.c +++ b/usr/src/usr.bin/more/help.c @@ -20,7 +20,7 @@ */ #ifndef lint -static char sccsid[] = "@(#)help.c 5.1 (Berkeley) %G%"; +static char sccsid[] = "@(#)help.c 5.2 (Berkeley) %G%"; #endif /* not lint */ #include "less.h" @@ -37,9 +37,9 @@ static char sccsid[] = "@(#)help.c 5.1 (Berkeley) %G%"; public void help() { - char cmd[FILENAME+100]; + char cmd[MAXPATHLEN+100]; - sprintf(cmd, + (void)sprintf(cmd, "-less -m '-PmHELP -- ?eEND -- Press g to see it again:Press RETURN for more., or q when done ' %s", HELPFILE); lsystem(cmd);