summaryrefslogtreecommitdiff
path: root/source/fitz/load-png.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/load-png.c')
-rw-r--r--source/fitz/load-png.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-png.c b/source/fitz/load-png.c
index cf1ab536..fbda9035 100644
--- a/source/fitz/load-png.c
+++ b/source/fitz/load-png.c
@@ -361,7 +361,7 @@ png_read_icc(fz_context *ctx, struct info *info, const unsigned char *p, unsigne
{
mstm = fz_open_memory(ctx, p + n + 2, size - n - 2);
zstm = fz_open_flated(ctx, mstm, 15);
- cs = fz_new_icc_colorspace_from_stream(ctx, (const char *)p, zstm);
+ cs = fz_new_icc_colorspace_from_stream(ctx, info->type, zstm);
/* drop old one in case we have multiple ICC profiles */
fz_drop_colorspace(ctx, info->cs);
info->cs = cs;