diff options
Diffstat (limited to 'lib/string.c')
-rw-r--r-- | lib/string.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/string.c b/lib/string.c index 5c8b55af0df6..d886ef157c12 100644 --- a/lib/string.c +++ b/lib/string.c | |||
@@ -86,6 +86,10 @@ EXPORT_SYMBOL(strcpy); | |||
86 | * | 86 | * |
87 | * The result is not %NUL-terminated if the source exceeds | 87 | * The result is not %NUL-terminated if the source exceeds |
88 | * @count bytes. | 88 | * @count bytes. |
89 | * | ||
90 | * In the case where the length of @src is less than that of | ||
91 | * count, the remainder of @dest will be padded with %NUL. | ||
92 | * | ||
89 | */ | 93 | */ |
90 | char * strncpy(char * dest,const char *src,size_t count) | 94 | char * strncpy(char * dest,const char *src,size_t count) |
91 | { | 95 | { |