From: Martin Mares Date: Sun, 23 Apr 2006 22:09:25 +0000 (+0200) Subject: Pointers to lists should be relative to current section, too. X-Git-Tag: holmes-import~645^2~11^2~59 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4e37b7c053107479b54a2d8332c54d1944357ea2;p=libucw.git Pointers to lists should be relative to current section, too. --- diff --git a/lib/conf2.c b/lib/conf2.c index b8f0ea94..c240f2d8 100644 --- a/lib/conf2.c +++ b/lib/conf2.c @@ -220,7 +220,7 @@ cf_init_section(byte *name, struct cf_section *sec, void *ptr, uns do_bzero) if (sec->cfg[i].cls == CC_SECTION) cf_init_section(sec->cfg[i].name, sec->cfg[i].u.sec, ptr + (addr_int_t) sec->cfg[i].ptr, 0); else if (sec->cfg[i].cls == CC_LIST) - clist_init(sec->cfg[i].ptr); + clist_init(ptr + (addr_int_t) sec->cfg[i].ptr); if (sec->init) { byte *msg = sec->init(ptr); if (msg)