From 7ebd74e3ee91bd1dee8bf3dddc05f5dfc04b174a Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Mon, 16 Nov 2009 13:30:53 +0000 Subject: [PATCH] Fix an unlikely crash that may happen when the X server cannot open the "fixed" font. --- caca/driver/x11.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caca/driver/x11.c b/caca/driver/x11.c index e0a2dcc..9d51c27 100644 --- a/caca/driver/x11.c +++ b/caca/driver/x11.c @@ -74,7 +74,7 @@ static int x11_init_graphics(caca_display_t *dp) Colormap colormap; XSetWindowAttributes x11_winattr; int (*old_error_handler)(Display *, XErrorEvent *); - char const *fonts[] = { NULL, "8x13bold", "fixed" }, **parser; + char const *fonts[] = { NULL, "8x13bold", "fixed", NULL }, **parser; char const *geometry; int width = caca_get_canvas_width(dp->cv); int height = caca_get_canvas_height(dp->cv);