236b06cf9b
so it covers libOSMesa, too. [2] Reduce stack usage in libX11 (helps JDK 1.4) PR: [1] ports/46037 Submitted by: [2] phantom Approved by: portmgr
18 lines
454 B
C
18 lines
454 B
C
--- 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) {
|