diff options
author | B. Watson <yalhcru@gmail.com> | 2017-02-10 14:51:38 -0500 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2017-02-11 07:24:00 +0700 |
commit | d10ba005eb0195a6dc429b7a0b2c900dcabc2773 (patch) | |
tree | d650a4971bcc842016c5b12b5ebb27ca72b0c5d4 /system/yeahconsole/50-display.patch | |
parent | 16670f8cac2612a857fd20fac48a8803dc65fea6 (diff) |
system/yeahconsole: New maintainer, add man page, various fixes.
Diffstat (limited to 'system/yeahconsole/50-display.patch')
-rw-r--r-- | system/yeahconsole/50-display.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/system/yeahconsole/50-display.patch b/system/yeahconsole/50-display.patch new file mode 100644 index 000000000000..f981fce1138f --- /dev/null +++ b/system/yeahconsole/50-display.patch @@ -0,0 +1,16 @@ +From: Damián Viano <debian@damianv.com.ar> +Subject: Fixes segfault when $DISPLAY is not defined/can't be opened + +diff -Nura yeahconsole-0.3.4/yeahconsole.c yeahconsole-0.3.4.r.bk/yeahconsole.c +--- yeahconsole-0.3.4/yeahconsole.c 2006-03-11 15:26:00.000000000 -0300 ++++ yeahconsole-0.3.4.r.bk/yeahconsole.c 2006-07-01 17:49:14.000000000 -0300 +@@ -107,7 +107,8 @@ + } + + if (!(dpy = XOpenDisplay(NULL))) { +- fprintf(stderr, " can not open dpy %s", XDisplayName(NULL)); ++ fprintf(stderr, "Can not open display %s\n", XDisplayName(NULL)); ++ exit(1); + } + screen = DefaultScreen(dpy); + root = RootWindow(dpy, screen); |