summaryrefslogtreecommitdiff
path: root/source/fitz/load-gif.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/fitz/load-gif.c')
-rw-r--r--source/fitz/load-gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-gif.c b/source/fitz/load-gif.c
index 49e7cc06..c8835774 100644
--- a/source/fitz/load-gif.c
+++ b/source/fitz/load-gif.c
@@ -110,7 +110,7 @@ gif_read_subblocks(fz_context *ctx, struct info *info, unsigned char *p, unsigne
if (end - p < len)
fz_throw(ctx, FZ_ERROR_GENERIC, "premature end in data subblock in gif image");
if (buf)
- fz_write_buffer(ctx, buf, p, len);
+ fz_append_data(ctx, buf, p, len);
p += len;
}
} while (len > 0);