fix memory corruption
This commit is contained in:
parent
14ce1713ab
commit
0a9b650fc8
7
dunst.c
7
dunst.c
@ -836,8 +836,11 @@ void init_shortcut(keyboard_shortcut * ks)
|
|||||||
}
|
}
|
||||||
|
|
||||||
while (strstr(str, "+")) {
|
while (strstr(str, "+")) {
|
||||||
char delim = '+';
|
char *mod = str;
|
||||||
char *mod = strsep(&str, &delim);
|
while(*str != '+')
|
||||||
|
str++;
|
||||||
|
*str = '\0';
|
||||||
|
str++;
|
||||||
strtrim(mod);
|
strtrim(mod);
|
||||||
ks->mask = ks->mask | string_to_mask(mod);
|
ks->mask = ks->mask | string_to_mask(mod);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user