From 4786ebba9583eda0bda7695387f71909d08c8d03 Mon Sep 17 00:00:00 2001 From: Antti K Date: Sat, 26 Jul 2014 14:27:58 +0200 Subject: Neater format No need for brackets. --- xspy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/xspy.c b/xspy.c index 7cb9425..baaddd1 100644 --- a/xspy.c +++ b/xspy.c @@ -130,9 +130,8 @@ char *KeyCodeToStr(int code, int down) { strncpy(buf, str, KEYSYM_STRLEN); buf[KEYSYM_STRLEN]=0; /* still a string, so put it in form (+str) or (-str) */ - if (down) strcpy(buf, "(+"); - else strcpy(buf, "(-"); + if (down) strcpy(buf, "+ "); + else strcpy(buf, "- "); strcat(buf, str); - strcat(buf, ")"); return buf; } -- cgit v1.3-2-g0d8e