summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-21 23:04:12 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-21 23:04:12 +0000
commit17455416144df12415dce55a355f61815435dc68 (patch)
treed74ce07e239ba9c6cff0a3f71fad5bf4d037a9c0
parent61b451225e9e945f3d921750336b4c35cfe59b49 (diff)
Fix eglib g_key_file_get_string group detection
-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;