s3: Fix a C++ warning
authorVolker Lendecke <vl@samba.org>
Mon, 14 Feb 2011 19:56:09 +0000 (20:56 +0100)
committerVolker Lendecke <vlendec@samba.org>
Mon, 14 Feb 2011 20:44:55 +0000 (21:44 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Feb 14 21:44:55 CET 2011 on sn-devel-104

source3/libsmb/smb_share_modes.c

index e752f618a40aff5ad2bc88a8981a41252c3bd63a..bf3250bab4420870558fb098aa71d58fa3eff426 100644 (file)
@@ -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;