blob: f4e347f9d1bf95e897d6ee67dfc344e0b744ea2d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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) {
|