summaryrefslogtreecommitdiff
path: root/src/communications.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/communications.c')
-rw-r--r--src/communications.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/communications.c b/src/communications.c
index 52718ab..51da24a 100644
--- a/src/communications.c
+++ b/src/communications.c
@@ -74,7 +74,12 @@ receive_command_result (Window w)
/* If result is not the empty string, print it. */
if (strlen ((char *)result))
- printf ("%s\n", result);
+ {
+ if (result[1] == '0')
+ printf ("%s\n", &result[1]);
+ else
+ fprintf (stderr, "%s\n", &result[1]);
+ }
/* Free the result. */
XFree (result);