projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91dd26a
)
[PATCH] scnprintf(): fix a comment
author
Martin Peschke
<
[email protected]
>
Mon, 12 Feb 2007 08:51:56 +0000
(
00:51
-0800)
committer
Linus Torvalds
<
[email protected]
>
Mon, 12 Feb 2007 17:48:28 +0000
(09:48 -0800)
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]
>
lib/vsprintf.c
patch
|
blob
|
history
diff --git
a/lib/vsprintf.c
b/lib/vsprintf.c
index 44f0e339a9474cd9499d13177a8ae823a172951f..b025864d2e43d08bffa10849610d5dce10b5b9ce 100644
(file)
--- a/
lib/vsprintf.c
+++ b/
lib/vsprintf.c
@@
-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, ...)