From: walter harms this clarifies the documentation on the behavier of strncpy(). Signed-off-by: Domen Puncer Signed-off-by: Andrew Morton --- lib/string.c | 4 ++++ 1 files changed, 4 insertions(+) diff -puN lib/string.c~lib-c-documentation-strncpy lib/string.c --- 25/lib/string.c~lib-c-documentation-strncpy 2005-05-03 16:15:09.000000000 -0700 +++ 25-akpm/lib/string.c 2005-05-03 16:15:09.000000000 -0700 @@ -86,6 +86,10 @@ EXPORT_SYMBOL(strcpy); * * The result is not %NUL-terminated if the source exceeds * @count bytes. + * + * In the case where the length of @src is less than that of + * count, the remainder of @dest will be padded with %NUL. + * */ char * strncpy(char * dest,const char *src,size_t count) { _