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:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user