summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--xspy.c5
1 files 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;
}