Skip to content

Commit

Permalink
[PATCH] scnprintf(): fix a comment
Browse files Browse the repository at this point in the history
The return value of scnprintf() never exceeds @SiZe.

Signed-off-by: Martin Peschke <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Martin Peschke authored and Linus Torvalds committed Feb 12, 2007
1 parent 91dd26a commit ea6f328
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -554,8 +554,7 @@ EXPORT_SYMBOL(snprintf);
* @...: Arguments for the format string
*
* 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
* greater than or equal to @size, the resulting string is truncated.
* the trailing '\0'. If @size is <= 0 the function returns 0.
*/

int scnprintf(char * buf, size_t size, const char *fmt, ...)
Expand Down

0 comments on commit ea6f328

Please sign in to comment.