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

core: fix size used in snprintf when reading a configuration file

This commit is contained in:
Sebastien Helleu
2014-02-24 10:41:51 +01:00
parent fdfee08cf8
commit 59f4fe05bc
+1 -1
View File
@@ -2247,7 +2247,7 @@ config_file_read_internal (struct t_config_file *config_file, int reload)
/* encode line to internal charset */
ptr_line2 = string_iconv_to_internal (NULL, ptr_line);
if (ptr_line2)
snprintf (line, sizeof (line) - 1, "%s", ptr_line2);
snprintf (line, sizeof (line), "%s", ptr_line2);
/* skip spaces */
while (ptr_line[0] == ' ')