remove calls to standard fprintf function
[compress.git] / code.c
diff --git a/code.c b/code.c
index d8ef5da72d2de038631a0e4c68c035f51511ebe3..6f04c182c78267dd6f5e5a0124a6cc59764fe5f1 100644 (file)
--- a/code.c
+++ b/code.c
@@ -1,4 +1,8 @@
+#include <stddef.h>
+#include <stdio.h>
+
 #include "debug.h"
+#include "fprintf.h"
 
 #include "code.h"
 
@@ -42,7 +46,7 @@ int codcpy (char *dst, size_t n, char *src)
             return i;
         }
     }
-    VERBOSE (ERROR, printf ("Buffer too short\n"));
+    VERBOSE (ERROR, _fprintf (stdout, "Buffer too short\n"));
 
     return -1;
 }
@@ -60,4 +64,4 @@ int codlen (char *code)
     return i;
 }
 
-// vim: ts=4 sw=4 et
+/* vim: set ts=4 sw=4 et */