From 7c04e23ab7fcf29cfa37e53abbaad39d880cc36d Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 23 Oct 2011 19:34:21 +0100 Subject: [PATCH] i3-input: Bugfix: font must be dynamically allocated, we FREE it later --- i3-input/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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[] = {