mirror of
https://github.com/swaywm/sway.git
synced 2025-11-16 06:59:49 -05:00
fixed 2 small memory leaks & adds format attribute to log.
This commit is contained in:
parent
d3d0ba3a4b
commit
083d1eed1f
6 changed files with 26 additions and 17 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue