]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/ff-printf.c
tableprinter: removed unnecessary macros, code cleanup
[libucw.git] / ucw / ff-printf.c
index 09a6d432943ee5534cdffba9fdb3bca2e38b6030..f2ef8f3244b33ae5888af7f78e128b15b9043d82 100644 (file)
@@ -12,7 +12,6 @@
 #include <ucw/resource.h>
 
 #include <stdio.h>
-#include <stdbool.h>
 #include <alloca.h>
 
 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;