X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fff-printf.c;h=f2ef8f3244b33ae5888af7f78e128b15b9043d82;hb=6c4c397f94ec5f5df6bcc178fb5fa4e84d3505fc;hp=09a6d432943ee5534cdffba9fdb3bca2e38b6030;hpb=0192d9f3a127c82b32131d26ed9b5fb5a90db723;p=libucw.git diff --git a/ucw/ff-printf.c b/ucw/ff-printf.c index 09a6d432..f2ef8f32 100644 --- a/ucw/ff-printf.c +++ b/ucw/ff-printf.c @@ -12,7 +12,6 @@ #include #include -#include #include int @@ -27,7 +26,7 @@ vbprintf(struct fastbuf *b, const char *msg, va_list args) len = vsnprintf(buf, remains, msg, args2); va_end(args2); - if (len <= remains) + if (len < remains) { bdirect_write_commit(b, buf + len); return len;