Bug#354577: Patch (attempt #2)
Sorry, the patch got crippled being sent as message body. Now sending
as an attachment.
diff -ur xc.orig/programs/xfontsel/xfontsel.c xc/programs/xfontsel/xfontsel.c
--- xc.orig/programs/xfontsel/xfontsel.c 2004-04-04 02:38:55.000000000 +0400
+++ xc/programs/xfontsel/xfontsel.c 2006-02-28 17:51:11.000000000 +0300
@@ -505,7 +505,7 @@
int work_priority = 0;
fontNames = parseRec->fontNames =
- XListFonts(dpy, AppRes.pattern, 32767, &numFonts);
+ XListFonts(dpy, AppRes.pattern, (int) ((((long) ((unsigned) -1)) + 1) / 2 - 1), &numFonts);
fonts = (FontValues*)XtMalloc( numFonts*sizeof(FontValues) );
fontInSet = (Boolean*)XtMalloc( numFonts*sizeof(Boolean) );
Reply to: