21 lines
788 B
Text
21 lines
788 B
Text
Index: willuslib/wmupdf.c
|
|
--- willuslib/wmupdf.c.orig
|
|
+++ willuslib/wmupdf.c
|
|
@@ -1051,7 +1051,7 @@ printf(" srcptr = %p\n",srcbuf->data);
|
|
|
|
whitespace[0]=' ';
|
|
whitespace[1]='\0';
|
|
- fz_write_buffer(ctx,dstbuf,whitespace,1);
|
|
+ fz_append_data(ctx,dstbuf,whitespace,1);
|
|
}
|
|
/* mupdf 1.10a--replace write with append */
|
|
/*
|
|
@@ -1153,7 +1153,7 @@ static int new_stream_object(pdf_document *xref,fz_con
|
|
pdf_update_object(ctx,xref,ref,obj);
|
|
pdf_drop_obj(ctx,obj);
|
|
fzbuf=fz_new_buffer(ctx,strlen(buf));
|
|
- fz_write_buffer(ctx,fzbuf,(unsigned char *)buf,strlen(buf));
|
|
+ fz_append_data(ctx,fzbuf,(unsigned char *)buf,strlen(buf));
|
|
wmupdf_update_stream(ctx,xref,ref,fzbuf);
|
|
fz_drop_buffer(ctx,fzbuf);
|
|
return(ref);
|