[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Question about memory under MagiC



On Sat, 2011-10-22 at 23:06 +0200, Jean-François Lemaire wrote:

> However, under MagiC (tested by someone else) it crashes ("Memory block 
> destroyed by user program" message from MagiC).

Your strcpy has overwritten the end of the allocated memory block. Which
compiler/libs are you using? Does it work with strncpy? How are you
*sure* that the string fits in the allocated buffer? Maybe you can post
the code?

Jo Even