summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--eglib/gmain.c2
1 files changed, 1 insertions, 1 deletions
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;