r17316: More C++ warnings -- 456 left
[gd/samba-autobuild/.git] / source3 / include / smb_macros.h
index e296ddd140326f097a876899eac96c72aa4577b5..44f15734d9af50a3417ade09310df1833db4a804 100644 (file)
@@ -285,7 +285,7 @@ copy an IP address from one buffer to another
 #define SMB_XMALLOC_ARRAY(type,count) (type *)smb_xmalloc_array(sizeof(type),(count))
 
 /* limiting size of ipc replies */
-#define SMB_REALLOC_LIMIT(ptr,size) SMB_REALLOC(ptr,MAX((size),4*1024))
+#define SMB_REALLOC_LIMIT(ptr,size) (char *)SMB_REALLOC(ptr,MAX((size),4*1024))
 
 /* The new talloc is paranoid malloc checker safe. */