From 79c1c154e8cd46a8f292822bd54d2f523862382d Mon Sep 17 00:00:00 2001 From: Andreas Klemm Date: Wed, 2 Aug 2000 16:37:22 +0000 Subject: patch submission, cisco got a copy. Submitted by: Taras Heychenko --- net/tac_plus4/files/patch-af | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 net/tac_plus4/files/patch-af (limited to 'net/tac_plus4') diff --git a/net/tac_plus4/files/patch-af b/net/tac_plus4/files/patch-af new file mode 100644 index 000000000000..d692decaca12 --- /dev/null +++ b/net/tac_plus4/files/patch-af @@ -0,0 +1,22 @@ +--- report.c.orig Wed Aug 2 17:36:49 2000 ++++ report.c Wed Aug 2 17:38:39 2000 +@@ -239,12 +239,16 @@ + if (len <= 0) + return; + +- for (i = 0; i < len && i < 255; i++) { ++ if(len > 255) len = 255; ++ ++ for (i = 0; i < len; ) { + if (32 <= *p && *p <= 126) { + *bufp++ = *p++; ++ i++; + } else { +- sprintf(bufp, " 0x%x ", *p); +- bufp += strlen(bufp); ++ int n = snprintf(bufp, len-i, " 0x%x ", *p); ++ bufp += n; ++ i += n; + p++; + } + } -- cgit v1.2.3