summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clifile.c2
1 files changed, 1 insertions, 1 deletions
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;
}