From 17455416144df12415dce55a355f61815435dc68 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 21 Jan 2007 23:04:12 +0000 Subject: Fix eglib g_key_file_get_string group detection --- eglib/gmain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eglib/gmain.c b/eglib/gmain.c index 6f2f2688..794057b2 100644 --- a/eglib/gmain.c +++ b/eglib/gmain.c @@ -1284,7 +1284,7 @@ gchar *g_key_file_get_string(GKeyFile *key_file, continue; if (!group) { - if (line[0] != '[' || strcmp(line + 1, group_name)) + if (line[0] != '[' || strncmp(line + 1, group_name, group_len)) continue; if (line[group_len + 1] == ']') group = line + 1; -- cgit