Alexandre wrote:
I doubt it fills the buffer with nulls if it is too large though, so strncpy is probably not the right thing to use here (in fact strncpy is almost always the wrong function to use, we should probably have a janitorial task to fix this everywhere).
What is the right thing? strlcpy?
--Juan
__________________________________ Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25� http://photos.yahoo.com/ph/print_splash
Juan Lang juan_lang@yahoo.com writes:
What is the right thing? strlcpy?
Usually lstrcpynA/W.