]> git.sur5r.net Git - i3/i3/commitdiff
i3-input: Bugfix: font must be dynamically allocated, we FREE it later
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 23 Oct 2011 18:34:21 +0000 (19:34 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 23 Oct 2011 18:34:21 +0000 (19:34 +0100)
i3-input/main.c

index bd4592e7543c5c279659813953d77631ea16f83d..33ece52b364708f332afe6a4c60f7f11fb0d5f9b 100644 (file)
@@ -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[] = {