nss_wrapper: Fix some warnings
authorVolker Lendecke <vl@sernet.de>
Fri, 9 Nov 2007 13:23:16 +0000 (14:23 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 9 Nov 2007 14:16:59 +0000 (15:16 +0100)
source/lib/nss_wrapper/nss_wrapper.c

index 5bf7ebda4fe057c700a6840e22d56a393e653731..5d443facd3e7ed5402f4cb52eb9a2c7d34ef073b 100644 (file)
@@ -239,7 +239,7 @@ static bool nwrap_parse_file(struct nwrap_cache *nwrap)
                goto failed;
        }
 
-       buf = malloc(nwrap->st.st_size + 1);
+       buf = (uint8_t *)malloc(nwrap->st.st_size + 1);
        if (!buf) {
                NWRAP_ERROR(("%s: malloc failed\n",__location__));
                goto failed;