fix minor bug in config file parser

master
jp9000 2013-12-18 12:08:38 -07:00
parent 158f83dc96
commit 4da1c193dc
1 changed files with 1 additions and 1 deletions

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, "=");