Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/altq/altqstat PR/50824: David Binderman: Limit scan...



details:   https://anonhg.NetBSD.org/src/rev/ba0d3738d373
branches:  trunk
changeset: 813771:ba0d3738d373
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Feb 17 19:51:29 2016 +0000

description:
PR/50824: David Binderman: Limit scanf width

diffstat:

 usr.sbin/altq/altqstat/quip_client.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 92725a4e4cfd -r ba0d3738d373 usr.sbin/altq/altqstat/quip_client.c
--- a/usr.sbin/altq/altqstat/quip_client.c      Wed Feb 17 19:47:49 2016 +0000
+++ b/usr.sbin/altq/altqstat/quip_client.c      Wed Feb 17 19:51:29 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: quip_client.c,v 1.11 2015/06/16 23:04:14 christos Exp $        */
+/*     $NetBSD: quip_client.c,v 1.12 2016/02/17 19:51:29 christos Exp $        */
 /*     $KAME: quip_client.c,v 1.9 2003/05/17 05:59:00 itojun Exp $     */
 /*
  * Copyright (C) 1999-2000
@@ -357,7 +357,7 @@
        if (result_code != 200)
                errx(1, "can't get qdisc info");
 
-       if (sscanf(buf, "%s", qdisc) != 1)
+       if (sscanf(buf, "%63s", qdisc) != 1)
                errx(1, "can't get qdisc name");
 
        if (qdisc_name != NULL && strcmp(qdisc, qdisc_name) != 0)



Home | Main Index | Thread Index | Old Index