summaryrefslogtreecommitdiffstats
path: root/progs/xdemos/pbinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'progs/xdemos/pbinfo.c')
-rw-r--r--progs/xdemos/pbinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/progs/xdemos/pbinfo.c b/progs/xdemos/pbinfo.c
index 88d93c8da62..b43adf1bb70 100644
--- a/progs/xdemos/pbinfo.c
+++ b/progs/xdemos/pbinfo.c
@@ -95,7 +95,7 @@ main(int argc, char *argv[])
dpy = XOpenDisplay(dpyName);
if (!dpy) {
- printf("Error: couldn't open display %s\n", dpyName ? dpyName : ":0");
+ printf("Error: couldn't open display %s\n", XDisplayName(dpyName));
return 1;
}