Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ea6f3281 authored by Martin Peschke's avatar Martin Peschke Committed by Linus Torvalds
Browse files

[PATCH] scnprintf(): fix a comment



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

Signed-off-by: default avatarMartin Peschke <mp3@de.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 91dd26ad
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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, ...)