From: Michael Stapelberg Date: Sun, 23 Oct 2011 18:34:21 +0000 (+0100) Subject: i3-input: Bugfix: font must be dynamically allocated, we FREE it later X-Git-Tag: 4.1~61 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7c04e23ab7fcf29cfa37e53abbaad39d880cc36d;p=i3%2Fi3 i3-input: Bugfix: font must be dynamically allocated, we FREE it later --- diff --git a/i3-input/main.c b/i3-input/main.c index bd4592e7..33ece52b 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -276,7 +276,7 @@ static int handle_key_press(void *ignored, xcb_connection_t *conn, xcb_key_press int main(int argc, char *argv[]) { format = strdup("%s"); socket_path = getenv("I3SOCK"); - char *pattern = "-misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1"; + char *pattern = sstrdup("-misc-fixed-medium-r-normal--13-120-75-75-C-70-iso10646-1"); int o, option_index = 0; static struct option long_options[] = {