* [Resend][Patch] fixing a comment
@ 2007-02-05 14:58 Martin Peschke
0 siblings, 0 replies; only message in thread
From: Martin Peschke @ 2007-02-05 14:58 UTC (permalink / raw)
To: linux-kernel; +Cc: trivial
The return value of scnprintf() never exceeds @size.
Patch is against 2.6.20-rc6-mm3
Signed-off-by: Martin Peschke <mp3@de.ibm.com>
---
vsprintf.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
--- a/lib/vsprintf.c 2007-02-02 19:12:09.000000000 +0100
+++ b/lib/vsprintf.c 2007-02-05 13:56:02.000000000 +0100
@@ -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, ...)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-02-05 14:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-05 14:58 [Resend][Patch] fixing a comment Martin Peschke
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®