[PATCH] scnprintf(): fix a comment

The return value of scnprintf() never exceeds @size.

Signed-off-by: Martin Peschke <mp3@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Martin Peschke 2007-02-12 00:51:56 -08:00 committed by Linus Torvalds
parent 91dd26ad2c
commit ea6f3281a1

View file

@ -554,8 +554,7 @@ EXPORT_SYMBOL(snprintf);
* @...: Arguments for the format string * @...: Arguments for the format string
* *
* The return value is the number of characters written into @buf not including * The return value is the number of characters written into @buf not including
* the trailing '\0'. If @size is <= 0 the function returns 0. If the return is * the trailing '\0'. If @size is <= 0 the function returns 0.
* greater than or equal to @size, the resulting string is truncated.
*/ */
int scnprintf(char * buf, size_t size, const char *fmt, ...) int scnprintf(char * buf, size_t size, const char *fmt, ...)