diff --git a/[refs] b/[refs] index 5a7705674773..67e94d5f447e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ebe8b54134314cc31331f6e26f42276cd947d1df +refs/heads/master: 252795264df50a6c9eee604d29989854d5558139 diff --git a/trunk/lib/string.c b/trunk/lib/string.c index 5c8b55af0df6..d886ef157c12 100644 --- a/trunk/lib/string.c +++ b/trunk/lib/string.c @@ -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) {