summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/fitz/stext-search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/stext-search.c b/source/fitz/stext-search.c
index 8d768a4f..67497af9 100644
--- a/source/fitz/stext-search.c
+++ b/source/fitz/stext-search.c
@@ -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, &s);
+ fz_buffer_extract(ctx, buffer, (unsigned char **)&s);
fz_drop_buffer(ctx, buffer);
return s;
}