xlockmore/xlockmore-nose_mode_crash.patch
Antonio Teixeira 6f617beb9c - Update to 5.79:
* pyraminx and oct mode extended to size 6 also some hardcoding of size
    removed and fixed some drawing errors.
- Fix builds
  * Remove xlockmore-strict-aliasing.patch
  * Add xlockmore-cast-function-pointers.patch

OBS-URL: https://build.opensuse.org/package/show/X11:Utilities/xlockmore?expand=0&rev=68
2024-09-15 14:00:07 +00:00

17 lines
568 B
Diff

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)