summaryrefslogtreecommitdiffstats
path: root/eglib
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2007-01-21 23:11:43 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2007-01-21 23:11:43 +0000
commite67f1e9e5f1fd1f1c5ded32cd7f3bf2242d20f0d (patch)
tree12bd2167f7155a0d7b097c7595a999f7c359e297 /eglib
parent17455416144df12415dce55a355f61815435dc68 (diff)
Fix g_key_file_parse_string (again)
Diffstat (limited to 'eglib')
-rw-r--r--eglib/gmain.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eglib/gmain.c b/eglib/gmain.c
index 794057b2..0a42f1b9 100644
--- a/eglib/gmain.c
+++ b/eglib/gmain.c
@@ -1294,7 +1294,7 @@ gchar *g_key_file_get_string(GKeyFile *key_file,
if (strncmp(line, key, key_len))
continue;
- for (i = 0; line[i] != '\n'; i++) {
+ for (i = key_len; line[i] != '\n'; i++) {
if (line[i] == '=')
break;
if (!isspace(line[i]))