diff options
author | Volker Lendecke <vl@samba.org> | 2011-02-14 20:56:09 +0100 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2011-02-14 21:44:55 +0100 |
commit | 64c63a3e1ca7206cb3bb11ff6c8c206bb9a00444 (patch) | |
tree | fa801d2ac58c9493958396089c9cd5f8c505ef2b /source3/libsmb/smb_share_modes.c | |
parent | 0a05a364f3a8bb2ec89e261e372e762ab05d5e6b (diff) | |
download | samba-64c63a3e1ca7206cb3bb11ff6c8c206bb9a00444.tar.gz samba-64c63a3e1ca7206cb3bb11ff6c8c206bb9a00444.tar.bz2 samba-64c63a3e1ca7206cb3bb11ff6c8c206bb9a00444.zip |
s3: Fix a C++ warning
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 14 21:44:55 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/libsmb/smb_share_modes.c')
-rw-r--r-- | source3/libsmb/smb_share_modes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smb_share_modes.c b/source3/libsmb/smb_share_modes.c index e752f618a4..bf3250bab4 100644 --- a/source3/libsmb/smb_share_modes.c +++ b/source3/libsmb/smb_share_modes.c @@ -272,7 +272,7 @@ static uint32_t smb_name_hash(const char *sharepath, const char *filename, int * uint32_t name_hash; *err = 0; - fullpath = malloc(sharepath_size + filename_size + 2); + fullpath = (char *)malloc(sharepath_size + filename_size + 2); if (fullpath == NULL) { *err = 1; return 0; |