projects
/
monky
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug fix: make -X,--display actually work, improve error message if display not found
[monky]
/
src
/
x11.c
diff --git
a/src/x11.c
b/src/x11.c
index
286e070
..
5d325cd
100644
(file)
--- a/
src/x11.c
+++ b/
src/x11.c
@@
-76,7
+76,7
@@
void init_X11(const char *disp)
{
if (!display) {
if ((display = XOpenDisplay(disp)) == NULL) {
- CRIT_ERR(NULL, NULL, "can't open display: %s", XDisplayName(0));
+ CRIT_ERR(NULL, NULL, "can't open display: %s", XDisplayName(disp));
}
}