summaryrefslogtreecommitdiffstats
path: root/source3/lib/xfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/xfile.c')
-rw-r--r--source3/lib/xfile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/xfile.c b/source3/lib/xfile.c
index ef33c7894f7..8a6776b5f91 100644
--- a/source3/lib/xfile.c
+++ b/source3/lib/xfile.c
@@ -80,7 +80,7 @@ static int x_allocate_buffer(XFILE *f)
{
if (f->buf) return 1;
if (f->bufsize == 0) return 0;
- f->buf = SMB_MALLOC(f->bufsize);
+ f->buf = (char *)SMB_MALLOC(f->bufsize);
if (!f->buf) return 0;
f->next = f->buf;
return 1;