mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2025-12-20 04:30:06 +01:00
util: don't call function in macro argument
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1252>
This commit is contained in:
parent
0c2fd88580
commit
8c15a01d16
1 changed files with 2 additions and 1 deletions
|
|
@ -547,7 +547,8 @@ str_sanitize(const char *str)
|
|||
if (!strchr(str, '%'))
|
||||
return strdup(str);
|
||||
|
||||
size_t slen = min(strlen(str), 512);
|
||||
size_t slen = strlen(str);
|
||||
slen = min(slen, 512);
|
||||
char *sanitized = zalloc(2 * slen + 1);
|
||||
const char *src = str;
|
||||
char *dst = sanitized;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue