don't pause after exiting from help file
[unix-history] / usr / src / usr.bin / more / help.c
index 7e758a2..3761f73 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.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include  "less.h"
 #endif /* not lint */
 
 #include  "less.h"
@@ -37,11 +37,10 @@ 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);
-       error("End of help");
 }
 }