src/c2html.c

changeset 61
47a5fc33590a
parent 60
9f25df78925e
child 67
5da2cb5aea6b
--- a/src/c2html.c	Thu Nov 10 18:44:48 2016 +0100
+++ b/src/c2html.c	Mon Nov 13 13:52:00 2017 +0100
@@ -29,8 +29,8 @@
 
 #include "c2html.h"
 
-#include "ucx/list.h"
-#include "ucx/utils.h"
+#include <ucx/list.h>
+#include <ucx/utils.h>
 
 #define try_write(wfnc, str, n, buf, written, maxlen) \
     {                                              \
@@ -99,8 +99,8 @@
         size_t maxlen, c2html_highlighter_func hltr, int showln) {
     
     UcxBuffer *content = ucx_buffer_new(NULL, ibuflen*2, UCX_BUFFER_AUTOEXTEND);
-    ucx_stream_copy(inputbuffer, content, rfnc, (write_func) ucx_buffer_write,
-            ibuf, ibuflen, (size_t)-1);
+    ucx_stream_bcopy(inputbuffer, content, rfnc, (write_func) ucx_buffer_write,
+            ibuf, ibuflen);
 
     size_t n = c2html_bformatn(content->space, content->size,
             outputbuffer, wfnc, maxlen, hltr, showln);

mercurial