aboutsummaryrefslogtreecommitdiff
path: root/include/i3status.h
diff options
context:
space:
mode:
authorMichael Stapelberg2012-03-25 22:07:43 +0200
committerMichael Stapelberg2012-03-25 22:07:43 +0200
commit0686906b892aba4df014d440c313610bfac513e0 (patch)
treee8082dce005b6365d2afb29350e237af91200b15 /include/i3status.h
parentProperly output JSON with libyajl (diff)
use printf instead of write to not mix two ways of outputting data
Otherwise, the separator is not properly interleaved with output.
Diffstat (limited to 'include/i3status.h')
-rw-r--r--include/i3status.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/i3status.h b/include/i3status.h
index 4ec0ce4..4311054 100644
--- a/include/i3status.h
+++ b/include/i3status.h
@@ -61,7 +61,7 @@ enum { O_DZEN2, O_XMOBAR, O_I3BAR, O_NONE } output_format;
yajl_gen_string(json_gen, (const unsigned char *)"full_text", strlen("full_text")); \
yajl_gen_string(json_gen, (const unsigned char *)text, strlen(text)); \
} else { \
- write(STDOUT_FILENO, text, strlen(text)); \
+ printf("%s", text); \
} \
} while (0)