From: Michael Stapelberg Date: Fri, 10 Feb 2012 19:55:40 +0000 (+0000) Subject: Bugfix: insert ending double quote at the right position (Thanks mxf) X-Git-Tag: 4.2~84 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=fd2ff3a6eff551913cc3c9b2b3627717cf1e60fe;p=i3%2Fi3 Bugfix: insert ending double quote at the right position (Thanks mxf) --- diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 655107a2..f75f23de 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -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); }