void sprintfs
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 23 Jul 1988 03:03:47 +0000 (19:03 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 23 Jul 1988 03:03:47 +0000 (19:03 -0800)
SCCS-vsn: usr.bin/more/command.c 5.5

usr/src/usr.bin/more/command.c

index 3aac884..e05b8f6 100644 (file)
@@ -20,7 +20,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)command.c  5.4 (Berkeley) %G%";
+static char sccsid[] = "@(#)command.c  5.5 (Berkeley) %G%";
 #endif /* not lint */
 
 /*
 #endif /* not lint */
 
 /*
@@ -692,10 +692,10 @@ commands()
                        cmd_exec();
                        c = currline(MIDDLE);
                        if (c == 0)
                        cmd_exec();
                        c = currline(MIDDLE);
                        if (c == 0)
-                               sprintf(cmdbuf, "%s %s",
+                               (void)sprintf(cmdbuf, "%s %s",
                                        editor, current_file);
                        else
                                        editor, current_file);
                        else
-                               sprintf(cmdbuf, "%s +%d %s",
+                               (void)sprintf(cmdbuf, "%s +%d %s",
                                        editor, c, current_file);
                        lsystem(cmdbuf);
                        ch_init(0, 0);
                                        editor, c, current_file);
                        lsystem(cmdbuf);
                        ch_init(0, 0);