diff options
Diffstat (limited to 'source3/libsmb')
-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; |