Skip to content
Prev 14524 / 63424 Next

data is getting corrupted

On Mon, 29 Nov 2004 09:27:42 -0800 (PST), "Jeff D. Hamann"
<jeff.hamann@forestinformatics.com> wrote:

            
[ declarations deleted ]
This allocates a structure, initialized to all zeros.
This copies the string element to the address s_ptr->forest points to,
which is address 0, since you didn't change it from the initial NULL.
I'm surprised you didn't get a bigger error than the one you saw.

[ more deletions ]
Maybe you were just lucky that the overwriting at address 0 didn't
trash anything in those cases?

Duncan Murdoch