-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Drew schrieb:
> If I may elaborate on this problem, most of the string handling routines
> (strcpy, strcat, sprintf...etc.) have a more 'managed' alternative that
> Microsoft encourages programmers to use.  These have the '_s' after them
> (strcpy_s, strcat_s, sprintf_s), and contain an additional argument that
> specifies the length of the character array that defines the string. 
> This prevents the code from buffer overruns because it checks the limits
> of the string length.

That's why everybody apart from MS is using strncpy et al. They also
contain the maximum length.
Even MS offers those IIRC - but they are calling them strncpy_ et al.

CU,
Christian

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (MingW32)

iD8DBQFD1sAilhWtxOxWNFcRAuUHAKCRSlSYf2wc1aVOFL6u+WTgrzO9OgCeJ2dq
x6QzC8VGoNTPsNCt1LyO0mI=
=+Eng
-----END PGP SIGNATURE-----


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to