Henk Robbers wrote:
What if ldg points to something in the freed area? Maybe ldg itself is the pointer the the Malloc'd area.
Forget the lines below. baspag is not a array.
Maybe baspag is the first member of the struct. In which case ldg and ldg->baspag point to the same address :-)
-- Groeten; Regards. Henk Robbers. http://members.chello.nl/h.robbers Interactive disassembler: TT-Digger; http://digger.atari.org A Home Cooked C compiler: AHCC; http://ahcc.atari.org