diff options
Diffstat (limited to 'stream')
-rw-r--r-- | stream/stm_open.c | 2 | ||||
-rw-r--r-- | stream/stm_write.c | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/stream/stm_open.c b/stream/stm_open.c index 6481288a..43d2a60b 100644 --- a/stream/stm_open.c +++ b/stream/stm_open.c @@ -205,7 +205,7 @@ fz_error * fz_openwbuffer(fz_stream **stmp, fz_buffer *buf) return openbuffer(stmp, buf, FZ_SWRITE); } -fz_error * fz_openrmemory(fz_stream **stmp, char *mem, int len) +fz_error * fz_openrmemory(fz_stream **stmp, unsigned char *mem, int len) { fz_error *error; fz_buffer *buf; diff --git a/stream/stm_write.c b/stream/stm_write.c index d4eb99af..f619da9c 100644 --- a/stream/stm_write.c +++ b/stream/stm_write.c @@ -222,7 +222,7 @@ int fz_write(fz_stream *stm, unsigned char *mem, int n) int fz_printstr(fz_stream *stm, char *s) { - return fz_write(stm, s, strlen(s)); + return fz_write(stm, (unsigned char *) s, strlen(s)); } int fz_printobj(fz_stream *file, fz_obj *obj, int tight) @@ -235,7 +235,7 @@ int fz_printobj(fz_stream *file, fz_obj *obj, int tight) if (n < sizeof buf) { fz_sprintobj(buf, sizeof buf, obj, tight); - return fz_write(file, buf, n); + return fz_write(file, (unsigned char *) buf, n); } else { @@ -243,7 +243,7 @@ int fz_printobj(fz_stream *file, fz_obj *obj, int tight) if (!ptr) return -1; fz_sprintobj(ptr, n, obj, tight); - n = fz_write(file, ptr, n); + n = fz_write(file, (unsigned char *) ptr, n); fz_free(ptr); return n; } @@ -261,7 +261,7 @@ int fz_print(fz_stream *stm, char *fmt, ...) va_end(ap); if (n < sizeof buf) - return fz_write(stm, buf, n); + return fz_write(stm, (unsigned char *) buf, n); p = fz_malloc(n); if (!p) @@ -271,7 +271,7 @@ int fz_print(fz_stream *stm, char *fmt, ...) vsnprintf(p, n, fmt, ap); va_end(ap); - n = fz_write(stm, p, n); + n = fz_write(stm, (unsigned char *) p, n); fz_free(p); |