summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/tac_plus4/files/patch-af22
1 files changed, 22 insertions, 0 deletions
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++;
+ }
+ }