diff options
author | Volker Lendecke <vl@sernet.de> | 2007-12-01 11:43:12 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-12-01 10:43:35 -0800 |
commit | bbf2cb6da994ac73dd7ea26d81f724aa04b5a3cb (patch) | |
tree | 8a228483c88f6bde5451414a0bf966eeb3fc856c /source3/libsmb | |
parent | 4a3ee48de5a4aa4bacb547fa39138d66af6719c2 (diff) | |
download | samba-bbf2cb6da994ac73dd7ea26d81f724aa04b5a3cb.tar.gz samba-bbf2cb6da994ac73dd7ea26d81f724aa04b5a3cb.tar.bz2 samba-bbf2cb6da994ac73dd7ea26d81f724aa04b5a3cb.zip |
Fix some C++ warnings
(This used to be commit 156c7f10bb63a610f85b52242cfd1b67bfa73c29)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/clifile.c | 2 |
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; } |