]> pilppa.com Git - uci.git/commit
ucimap: ucimap_parse: consider smap_offset when allocating the section data
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 21 Aug 2010 00:51:48 +0000 (02:51 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 21 Aug 2010 01:31:30 +0000 (03:31 +0200)
commit25f9dbfe7bba18ac6c9b2f31e55c19be57f4eee0
tree437116466ba6eec56b234b684b0786805cf28d97
parentfcb93b2ca79dbddd7a8754f65d72b78c4d6c13b5
ucimap: ucimap_parse: consider smap_offset when allocating the section data

Currently when there is no custom section data allocator the ucimap_section_data
struct has to be at the beginning at the containing structure.
This patch gets rid of that restriction by taking smap_offset into account.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
ucimap.c