1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-12 14:14:48 +02:00

core: add extra check of string length on whitespace char options

This commit is contained in:
Sébastien Helleu
2025-02-15 20:59:22 +01:00
parent 8fd4a80af8
commit d3a9e4e74b
+1 -1
View File
@@ -1328,7 +1328,7 @@ config_check_whitespace_char (const void *pointer, void *data,
(void) data;
(void) option;
return (utf8_strlen_screen (value) == 1) ? 1 : 0;
return ((strlen (value) <= 4) && (utf8_strlen_screen (value) == 1)) ? 1 : 0;
}
/*