[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
- Previous message: [Python-Dev] cpython: Use strncat() instead of strcat() to silence some warnings.
- Next message: [Python-Dev] cpython: Use strncat() instead of strcat() to silence some warnings.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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. :)
- Previous message: [Python-Dev] cpython: Use strncat() instead of strcat() to silence some warnings.
- Next message: [Python-Dev] cpython: Use strncat() instead of strcat() to silence some warnings.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]