summaryrefslogtreecommitdiff
path: root/time/pcal/patches/patch-af
diff options
context:
space:
mode:
Diffstat (limited to 'time/pcal/patches/patch-af')
-rw-r--r--time/pcal/patches/patch-af13
1 files changed, 13 insertions, 0 deletions
diff --git a/time/pcal/patches/patch-af b/time/pcal/patches/patch-af
new file mode 100644
index 00000000000..1669ad8830e
--- /dev/null
+++ b/time/pcal/patches/patch-af
@@ -0,0 +1,13 @@
+$NetBSD: patch-af,v 1.1 2005/03/20 21:34:17 salo Exp $
+
+--- pcalutil.c.orig 2000-02-09 17:06:23.000000000 +0100
++++ pcalutil.c 2005-03-20 22:26:14.000000000 +0100
+@@ -1111,6 +1111,8 @@
+ else
+ ungetc(c2, fp);
+ }
++ /* Don't overflow the buffer */
++ if ( (cp - tmpbuf) < (LINSIZ -1))
+ *cp++ = c;
+ }
+