fix minor bug in config file parser

This commit is contained in:
jp9000 committed 2013-12-18 12:08:38 -07:00
1 parent 158f83dc96
commit 4da1c193dc
1 file changed
+1 -1
+1 -1
View File
@@ -293,7 +293,7 @@ int config_save(config_t config)
for (j = 0; j < section->items.num; j++) {
struct config_item *item = darray_item(
sizeof(struct config_item),
&section->items, i);
&section->items, j);
dstr_cat(&str, item->name);
dstr_cat(&str, "=");