[Python-Dev] cpython: Use strncat() instead of strcat() to silence some warnings. (original) (raw)

Christian Heimes christian at python.org
Sat Jul 20 16:04:08 CEST 2013


Am 20.07.2013 15:56, schrieb Serhiy Storchaka:

Oh, true. strncat() always results NUL-terminated string. It's strncpy() can produce not NUL-terminated string. Sorry for noise.

You're welcome! Better safe than sorry. :)



More information about the Python-Dev mailing list