projects
/
project
/
uci.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7b730e
)
fix wrong buffer allocation
author
Felix Fietkau
<nbd@openwrt.org>
Mon, 18 Aug 2008 19:49:13 +0000
(21:49 +0200)
committer
Felix Fietkau
<nbd@openwrt.org>
Mon, 18 Aug 2008 19:49:13 +0000
(21:49 +0200)
list.c
patch
|
blob
|
history
diff --git
a/list.c
b/list.c
index ab40bdae11663461994b64f9fe5f8de64657dc94..2331c7ef7946f0ac0bec7ba489e44e78a7264084 100644
(file)
--- a/
list.c
+++ b/
list.c
@@
-469,7
+469,7
@@
int uci_add_element_list(struct uci_context *ctx, struct uci_option *o, const ch
if (!internal && p->has_history)
uci_add_history(ctx, &p->history, UCI_CMD_LIST_ADD, s->e.name, o->e.name, value);
- e = uci_alloc_generic(ctx, UCI_TYPE_ITEM, value,
0
);
+ e = uci_alloc_generic(ctx, UCI_TYPE_ITEM, value,
sizeof(struct uci_option)
);
uci_list_add(&o->v.list, &e->list);
return 0;