diff --git a/common/file.c b/common/file.c index 0df36840..400af74d 100644 --- a/common/file.c +++ b/common/file.c @@ -203,7 +203,7 @@ file_read_section(int fd, char* section, struct list* names, } else if (c == ']') { - if (g_strncasecmp(section, text, 255) == 0) + if (g_strcasecmp(section, text) == 0) { file_read_line(s, text); while (file_read_line(s, text) == 0)