Source-Changes-HG archive

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

[src/netbsd-1-5]: src/usr.bin/top pullup 1.4 -> 1.5 (approved by releng-1-5)



details:   https://anonhg.NetBSD.org/src/rev/a84e8be25dbb
branches:  netbsd-1-5
changeset: 489674:a84e8be25dbb
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Oct 04 18:09:32 2000 +0000

description:
pullup 1.4 -> 1.5 (approved by releng-1-5)

plug possible printf string format issue.  seen on openbsd mailing list

diffstat:

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

diffs (27 lines):

diff -r 4f3a92b4bf23 -r a84e8be25dbb usr.bin/top/top.c
--- a/usr.bin/top/top.c Wed Oct 04 17:44:27 2000 +0000
+++ b/usr.bin/top/top.c Wed Oct 04 18:09:32 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: top.c,v 1.4 1999/04/12 06:02:26 ross Exp $     */
+/*     $NetBSD: top.c,v 1.4.8.1 2000/10/04 18:09:32 itojun Exp $       */
 
 char *copyright =
     "Copyright (c) 1984 through 1996, William LeFebvre";
@@ -755,7 +755,7 @@
                                {
                                    if ((errmsg = kill_procs(tempbuf2)) != NULL)
                                    {
-                                       new_message(MT_standout, errmsg);
+                                       new_message(MT_standout, "%s", errmsg);
                                        putchar('\r');
                                        no_command = Yes;
                                    }
@@ -772,7 +772,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