From f64c55f4e571e2c909cada7208e35b20af0861d7 Mon Sep 17 00:00:00 2001 From: walter harms Date: Thu, 5 May 2005 16:16:20 -0700 Subject: [PATCH] --- yaml --- r: 1045 b: refs/heads/master c: 252795264df50a6c9eee604d29989854d5558139 h: refs/heads/master i: 1043: 5413454149366eb93010c25487b28b6b3db04ed5 v: v3 --- [refs] | 2 +- trunk/lib/string.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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) {