aboutsummaryrefslogtreecommitdiff
path: root/net/tac_plus4
diff options
context:
space:
mode:
authorAndreas Klemm <andreas@FreeBSD.org>2000-08-02 16:37:22 +0000
committerAndreas Klemm <andreas@FreeBSD.org>2000-08-02 16:37:22 +0000
commit79c1c154e8cd46a8f292822bd54d2f523862382d (patch)
tree35b4b61a62ef28034fae662fa123341aa45cacfb /net/tac_plus4
parent28484c98d89c2fef6451ffa1a374e02b2a8c6394 (diff)
downloadports-79c1c154e8cd46a8f292822bd54d2f523862382d.tar.gz
ports-79c1c154e8cd46a8f292822bd54d2f523862382d.zip
Notes
Diffstat (limited to 'net/tac_plus4')
-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++;
+ }
+ }