]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: insert ending double quote at the right position (Thanks mxf)
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 10 Feb 2012 19:55:40 +0000 (19:55 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 10 Feb 2012 19:55:40 +0000 (19:55 +0000)
i3bar/src/xcb.c

index 655107a2602454a413f7f3327bd1eebd97cad1e4..f75f23deb4795aab4c4c327d2fd4bd8cc3252950 100644 (file)
@@ -321,7 +321,7 @@ void handle_button(xcb_button_press_event_t *event) {
         }
         buffer[outpos] = cur_ws->name[inpos];
     }
-    buffer[++outpos] = '"';
+    buffer[outpos] = '"';
     i3_send_msg(I3_IPC_MESSAGE_TYPE_COMMAND, buffer);
     free(buffer);
 }