X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=lib%2Fstring.c;h=d886ef157c121ffb04fec4db267ee9af69e01f60;hb=96d0821cacd095e25a39dfff5232a45b63ed18dd;hp=5c8b55af0df6ec24a9af24c3a4707a52fb8f2573;hpb=0c28130b5c9e8f0b153436d3dae39482e5a70af1;p=linux-2.6 diff --git a/lib/string.c b/lib/string.c index 5c8b55af0d..d886ef157c 100644 --- a/lib/string.c +++ b/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) {