ports/x11/yeahlaunch/patches/patch-yeahlaunch_c

13 lines
549 B
Text

--- yeahlaunch.c.orig Mon Jun 4 17:44:48 2007
+++ yeahlaunch.c Mon Jun 4 17:44:55 2007
@@ -104,6 +104,10 @@ int main(int argc, char *argv[])
}
font = XLoadQueryFont(dpy, opt_font);
+ if (font == NULL) {
+ fprintf(stderr, "Font does not exist! exiting...\n");
+ exit(1);
+ }
height = font-> /* max_bounds. */ ascent + font-> /* max_bounds. */ descent + 3;
XAllocNamedColor(dpy, DefaultColormap(dpy, screen), opt_fg, &fg, &dummy);
XAllocNamedColor(dpy, DefaultColormap(dpy, screen), opt_afg, &afg, &dummy);