summaryrefslogtreecommitdiff
path: root/source/fitz/stext-search.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-11-15 16:10:11 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-11-16 12:24:29 +0100
commit00043f2f93a344319e4e282087646f082bffe8dd (patch)
tree3bb5d63e1da353407d049dc498372c1e6174c79d /source/fitz/stext-search.c
parentfa9cd67527ab9994fec917f0f88fc16abb9926a6 (diff)
downloadmupdf-00043f2f93a344319e4e282087646f082bffe8dd.tar.xz
Fix warning.
Diffstat (limited to 'source/fitz/stext-search.c')
-rw-r--r--source/fitz/stext-search.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fitz/stext-search.c b/source/fitz/stext-search.c
index 67497af9..3904b01d 100644
--- a/source/fitz/stext-search.c
+++ b/source/fitz/stext-search.c
@@ -231,7 +231,7 @@ fz_copy_selection(fz_context *ctx, fz_stext_page *page, fz_rect rect)
fz_buffer *buffer;
fz_rect hitbox;
int c, i, block_num, seen = 0;
- char *s;
+ unsigned char *s;
float x0 = rect.x0;
float x1 = rect.x1;
@@ -280,7 +280,7 @@ fz_copy_selection(fz_context *ctx, fz_stext_page *page, fz_rect rect)
fz_write_buffer_byte(ctx, buffer, 0);
- fz_buffer_extract(ctx, buffer, (unsigned char **)&s);
+ fz_buffer_extract(ctx, buffer, &s);
fz_drop_buffer(ctx, buffer);
- return s;
+ return (char*)s;
}