Fix out of tree build. Remove the embedded srcdir path from talloc and tdb.
[ira/wip.git] / testsuite / printing / vlp.c
index 5c8dcd92eb21a0b6c09ceee04276ae4eaf2d43cd..15459889e9fc50ffd55171b8e14eefbc158d4bc6 100644 (file)
@@ -256,7 +256,8 @@ static int print_command(int argc, char **argv)
 
                /* Add job to end of queue */
 
-               queue.dptr = SMB_MALLOC(value.dsize + sizeof(struct vlp_job));
+               queue.dptr = (unsigned char *)SMB_MALLOC(value.dsize +
+                                                       sizeof(struct vlp_job));
                if (!queue.dptr) return 1;
 
                memcpy(queue.dptr, value.dptr, value.dsize);