From bbf2cb6da994ac73dd7ea26d81f724aa04b5a3cb Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 1 Dec 2007 11:43:12 +0100 Subject: Fix some C++ warnings (This used to be commit 156c7f10bb63a610f85b52242cfd1b67bfa73c29) --- source3/libsmb/clifile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index e438b6d926..cd50cfc03c 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -1478,7 +1478,7 @@ int cli_ctemp(struct cli_state *cli, const char *path, char **tmp_path) if (len <= 0 || len > PATH_MAX) return -1; if (tmp_path) { - char *path2 = SMB_MALLOC(len+1); + char *path2 = SMB_MALLOC_ARRAY(char, len+1); if (!path2) { return -1; } -- cgit