summaryrefslogtreecommitdiffstats
path: root/common/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/file.c')
-rw-r--r--common/file.c2
1 files changed, 1 insertions, 1 deletions
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)