"fast AND correct strncpy" not working by itself?
Posted Aug 28, 2003 13:08 UTC (Thu) by
IkeTo (subscriber, #2122)
In reply to:
"fast AND correct strncpy" not working by itself? by akukula
Parent article:
[PATCH] fast AND correct strncpy
> I'm not a kernel hacker but why all of those functions doesn't
> terminate 'dest' if strlen(src) > count ???
You don't need to be kernel hacker to understand that in POSIX strncpy is defined like that. In contrast, strncat does terminate the resulting string in such cases.
(
Log in to post comments)