This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Saturday 05 May 2007, Yuhong Bao wrote: > strncpy makes it hard to check for overflow. > strlcpy make it much easier to check for overflow. > strcpy_s (part of the VC2005 libraries) do not copy the string at all if > overflow has happened. You must use strncpy_s with _TRUNCATE specified in > the count parameter to truncate. were you trying to ask a question ? seems like you were just stating some facts ... -mike
Attachment:
signature.asc
Description: This is a digitally signed message part.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |