s3: in sys_popen(), validate input before opening the pipe.
[kai/samba.git] / source3 / lib / tallocmsg.c
index 6cea757457028eb2eff3bf87098acd7aaf08597c..9a0ce8ada18f324f991f33a457936bc12ae9b6a4 100644 (file)
@@ -17,7 +17,7 @@
 */
 
 #include "includes.h"
-#include "librpc/gen_ndr/messaging.h"
+#include "messages.h"
 
 /**
  * @file tallocmsg.c
@@ -65,7 +65,7 @@ static void msg_pool_usage_helper(const void *ptr, int depth, int max_depth, int
                               (unsigned long)talloc_total_blocks(ptr),
                               talloc_reference_count(ptr),
                               MIN(50, talloc_get_size(ptr)),
-                              (char *)ptr);
+                              (const char *)ptr);
                return;
        }