Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-4]: src/usr.bin/top Pull up revision 1.5 (requested by itojun):



details:   https://anonhg.NetBSD.org/src/rev/1debb616fcec
branches:  netbsd-1-4
changeset: 470937:1debb616fcec
user:      he <he%NetBSD.org@localhost>
date:      Fri Oct 06 14:47:50 2000 +0000

description:
Pull up revision 1.5 (requested by itojun):
  Plug possible printf string format issue.

diffstat:

 usr.bin/top/top.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 358697cfb20a -r 1debb616fcec usr.bin/top/top.c
--- a/usr.bin/top/top.c Wed Oct 04 16:29:21 2000 +0000
+++ b/usr.bin/top/top.c Fri Oct 06 14:47:50 2000 +0000
@@ -753,7 +753,7 @@
                                {
                                    if ((errmsg = kill_procs(tempbuf2)) != NULL)
                                    {
-                                       new_message(MT_standout, errmsg);
+                                       new_message(MT_standout, "%s", errmsg);
                                        putchar('\r');
                                        no_command = Yes;
                                    }
@@ -770,7 +770,7 @@
                                {
                                    if ((errmsg = renice_procs(tempbuf2)) != NULL)
                                    {
-                                       new_message(MT_standout, errmsg);
+                                       new_message(MT_standout, "%s", errmsg);
                                        putchar('\r');
                                        no_command = Yes;
                                    }



Home | Main Index | Thread Index | Old Index