]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/ff-printf.c
Mempool: Implemented statistics about allocated bytes from memory pool to application.
[libucw.git] / ucw / ff-printf.c
index 8783d9069fabe24c33b1d88592f06571252d8c75..f2ef8f3244b33ae5888af7f78e128b15b9043d82 100644 (file)
@@ -26,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;