|
From: Abaddon <ab...@80...> - 2002-12-06 17:23:36
|
right you are (i remembered for strncat, in any case, this behaviour is better than overwriting everything, and it will more than likely result in a crash from reading memory out of bounds rather than writing memory out of bounds...) in any event, ill change them to sizeof -1... --Abaddon On Fri, 2002-12-06 at 05:01, Serge van den Boom wrote: > On 6 Dec 2002, Abaddon wrote: > > same as last patch but for strcpy > strncpy does not null-terminate if the string is too short. This one need= s > work. >=20 > Serge >=20 >=20 >=20 >=20 > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Sc2-devel mailing list > Sc2...@li... > https://lists.sourceforge.net/lists/listinfo/sc2-devel >=20 |