From 50dbd61063b6775bc70ac8e8a6bc4eaf629c44aa Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 4 Aug 2009 14:50:42 +0200 Subject: buffer: add explicit cast in read_buffer(). Michael --- src/buffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/buffer.c b/src/buffer.c index bfb7200..796e20a 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -236,7 +236,7 @@ read_buffer (int fd, struct buffer_s * buffptr) if (buffptr->size >= MAXBUFFSIZE) return 0; - buffer = safemalloc (READ_BUFFER_SIZE); + buffer = (unsigned char *)safemalloc (READ_BUFFER_SIZE); if (!buffer) { return -ENOMEM; -- cgit v1.2.3