aboutsummaryrefslogtreecommitdiffstats
path: root/net/tac_plus4
diff options
context:
space:
mode:
authorandreas <andreas@FreeBSD.org>2000-08-03 00:37:22 +0800
committerandreas <andreas@FreeBSD.org>2000-08-03 00:37:22 +0800
commita247120969aee00053da18ae4a9716ee5c9d3848 (patch)
treeb83a4fae79e059e80ead8d3c88ac43b604da9d1e /net/tac_plus4
parentb2f93daa74930ab01eb03b9a89c7bd977dc8416e (diff)
downloadfreebsd-ports-graphics-a247120969aee00053da18ae4a9716ee5c9d3848.tar.gz
freebsd-ports-graphics-a247120969aee00053da18ae4a9716ee5c9d3848.tar.zst
freebsd-ports-graphics-a247120969aee00053da18ae4a9716ee5c9d3848.zip
patch submission, cisco got a copy.
Submitted by: Taras Heychenko <tasic@lucky.net>
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 00000000000..d692decaca1
--- /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++;
+ }
+ }