summaryrefslogtreecommitdiff
path: root/xdpyinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r--xdpyinfo.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 06681b9..943216a 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -578,8 +578,7 @@ print_event_mask(char *buf, /* string to write into */
buf[0] = buf[lastcol] = '\0'; /* just in case */
-#define INDENT() { len = indent; \
- for (int i = 0; i < indent; i++) buf[i] = ' '; }
+#define INDENT() do { len = indent; memset(buf, ' ', indent); } while (0)
INDENT ();