xlockmore/xlockmore-nose_mode_crash.patch

17 lines
568 B
Diff
Raw Permalink Normal View History

Index: xlockmore-5.43/modes/nose.c
===================================================================
--- xlockmore-5.43.orig/modes/nose.c 2013-02-18 15:53:14.000000000 +0100
+++ xlockmore-5.43/modes/nose.c 2015-03-10 20:44:01.731745516 +0100
@@ -584,6 +584,11 @@ talk(ModeInfo * mi, Bool force_erase)
register char *p, *p2;
char buf[BUFSIZ], args[MAXLINES][MAXWIDTH];
+ /* don't try to talk without a graphics context */
+ if (!np->text_bg_gc) {
+ return;
+ }
+
/* clear what we've written */
if (np->talking || force_erase) {
if (!np->talking)