Skip to contentSkip to conversation

fixing a comment

PATCH RESEND New Martin Peschke 1 participant 1 message Feb 5, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 fixing a comment

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

Patch is against 2.6.20-rc6-mm3

---

 vsprintf.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
lib/vsprintf.c +1 -2
@@ -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, ...)