strcat+strcat+strcat == baaad

Alexandre Julliard julliard at winehq.com
Mon Dec 2 12:24:19 CST 2002


David Laight <david at l8s.co.uk> writes:

> Yes, but even then strcpy may not be safe!  Another thread could change
> the length after you've counted it.

Please, this is silly. If another thread is changing the string, all
string functions will break, strlcpy is not magically "safer" than
strcpy.

-- 
Alexandre Julliard
julliard at winehq.com



More information about the wine-devel mailing list