buffer: add explicit cast in read_buffer().

Michael
This commit is contained in:
Michael Adam 2009-08-04 14:50:42 +02:00
parent e5e665b0c6
commit 50dbd61063

View File

@ -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;