diff options
Diffstat (limited to 'source/tools/pdfcreate.c')
-rw-r--r-- | source/tools/pdfcreate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tools/pdfcreate.c b/source/tools/pdfcreate.c index 79f4a29d..b7b580db 100644 --- a/source/tools/pdfcreate.c +++ b/source/tools/pdfcreate.c @@ -129,8 +129,8 @@ static void create_page(char *input) } else { - fz_write_buffer(ctx, contents, line, strlen(line)); - fz_write_buffer_byte(ctx, contents, '\n'); + fz_append_string(ctx, contents, line); + fz_append_byte(ctx, contents, '\n'); } } fz_drop_stream(ctx, stm); |