summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-08-04 14:50:42 +0200
committerMichael Adam <obnox@samba.org>2009-08-04 23:47:28 +0200
commit50dbd61063b6775bc70ac8e8a6bc4eaf629c44aa (patch)
treec3ad220bcaef13fa0e6cf54ee87b377a9cedca51 /src
parente5e665b0c622827d51551218b41282dbfeb39650 (diff)
downloadtinyproxy-50dbd61063b6775bc70ac8e8a6bc4eaf629c44aa.tar.gz
tinyproxy-50dbd61063b6775bc70ac8e8a6bc4eaf629c44aa.zip
buffer: add explicit cast in read_buffer().
Michael
Diffstat (limited to 'src')
-rw-r--r--src/buffer.c2
1 files changed, 1 insertions, 1 deletions
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;