aboutsummaryrefslogtreecommitdiff
path: root/x11/XFree86-4-libraries/files/patch-imLcPrs.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/XFree86-4-libraries/files/patch-imLcPrs.c')
-rw-r--r--x11/XFree86-4-libraries/files/patch-imLcPrs.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/x11/XFree86-4-libraries/files/patch-imLcPrs.c b/x11/XFree86-4-libraries/files/patch-imLcPrs.c
new file mode 100644
index 000000000000..f4e347f9d1bf
--- /dev/null
+++ b/x11/XFree86-4-libraries/files/patch-imLcPrs.c
@@ -0,0 +1,18 @@
+--- lib/X11/imLcPrs.c.orig Wed Dec 4 00:16:59 2002
++++ lib/X11/imLcPrs.c Wed Dec 4 00:17:44 2002
+@@ -518,13 +518,13 @@
+ FILE *fp;
+ DefTree **ptop;
+ {
+- char tb[65535];
++ char tb[8192];
+ char* tbp;
+ struct stat st;
+
+ if (fstat (fileno (fp), &st) != -1) {
+ unsigned long size = (unsigned long) st.st_size;
+- if (size < sizeof tb) tbp = tb;
++ if (size <= sizeof tb) tbp = tb;
+ else tbp = malloc (size);
+
+ if (tbp != NULL) {