r24994: Fix some C++ warnings.
[jelmer/samba4-debian.git] / source / libcli / raw / rawrequest.c
index 6bf2bb58cc3888c438783fed13e33393cb0bc1b7..778b896abdf7c5c77ab35956a527b113a680989c 100644 (file)
@@ -83,7 +83,7 @@ struct smbcli_request *smbcli_request_setup_nonsmb(struct smbcli_transport *tran
        /* over allocate by a small amount */
        req->out.allocated = req->out.size + REQ_OVER_ALLOCATION; 
 
-       req->out.buffer = talloc_size(req, req->out.allocated);
+       req->out.buffer = talloc_array(req, uint8_t, req->out.allocated);
        if (!req->out.buffer) {
                return NULL;
        }