diff options
| author | 2014-07-26 14:27:58 +0200 | |
|---|---|---|
| committer | 2014-07-26 14:27:58 +0200 | |
| commit | 4786ebba9583eda0bda7695387f71909d08c8d03 (patch) | |
| tree | 7bc902740454b29f609af2d905606a948e31439b | |
| parent | 32dba0358c30084f62c61c04f11f4432d2ae34f9 (diff) | |
| download | xkbcat-4786ebba9583eda0bda7695387f71909d08c8d03.tar.gz xkbcat-4786ebba9583eda0bda7695387f71909d08c8d03.zip | |
Neater format
No need for brackets.
| -rw-r--r-- | xspy.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; } |
