FILENAME is wrong, use MAXPATHLEN
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 23 Jul 1988 03:04:24 +0000 (19:04 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 23 Jul 1988 03:04:24 +0000 (19:04 -0800)
SCCS-vsn: usr.bin/more/help.c 5.2

usr/src/usr.bin/more/help.c

index 7e758a2..9a4766f 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #ifndef lint
  */
 
 #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"
 #endif /* not lint */
 
 #include  "less.h"
@@ -37,9 +37,9 @@ static char sccsid[] = "@(#)help.c    5.1 (Berkeley) %G%";
        public void
 help()
 {
        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);
         "-less -m '-PmHELP -- ?eEND -- Press g to see it again:Press RETURN for more., or q when done ' %s",
         HELPFILE);
        lsystem(cmd);