From: net[shemminger]!shemminger Date: Thu, 10 Mar 2005 19:00:42 +0000 (+0000) Subject: Import patch thomas.1 X-Git-Tag: v2_6_11-050310~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1d2d1cb52255b01a764aa59cd17876cf87685f34;p=thirdparty%2Fiproute2.git Import patch thomas.1 (Logical change 1.147) --- diff --git a/tc/q_netem.c b/tc/q_netem.c index 60369dc6b..f696cc323 100644 --- a/tc/q_netem.c +++ b/tc/q_netem.c @@ -243,7 +243,7 @@ static int netem_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt) memcpy(&qopt, RTA_DATA(opt), sizeof(qopt)); if (len > 0) { - struct rtattr *tb[TCA_NETEM_MAX]; + struct rtattr *tb[TCA_NETEM_MAX+1]; parse_rtattr(tb, TCA_NETEM_MAX, RTA_DATA(opt) + sizeof(qopt), len);