diff options
author | taiyu <[email protected]> | 2015-08-15 21:21:20 -0700 |
---|---|---|
committer | taiyu <[email protected]> | 2015-08-15 21:21:20 -0700 |
commit | 083d1eed1f61f8cc7397031f1ab987022ba6868e (patch) | |
tree | 22d5c72c3352139cf0adda5f9b8c4c5e6245f73c /sway/workspace.c | |
parent | d3d0ba3a4b8a79384ae262d0168ce111c06d4c1b (diff) |
fixed 2 small memory leaks & adds format attribute to log.
Diffstat (limited to 'sway/workspace.c')
-rw-r--r-- | sway/workspace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/workspace.c b/sway/workspace.c index 49a1224f..a08877be 100644 --- a/sway/workspace.c +++ b/sway/workspace.c @@ -26,7 +26,7 @@ char *workspace_next_name(void) { list_t *args = split_string(command, " "); if (strcmp("workspace", args->items[0]) == 0 && args->length > 1) { - sway_log(L_DEBUG, "Got valid workspace command for target: '%s'", args->items[1]); + sway_log(L_DEBUG, "Got valid workspace command for target: '%s'", (char *)args->items[1]); char* target = malloc(strlen(args->items[1]) + 1); strcpy(target, args->items[1]); while (*target == ' ' || *target == '\t') |