summaryrefslogtreecommitdiff
path: root/source3/lib/nss_wrapper/nss_wrapper.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@sernet.de>2007-11-09 14:23:16 +0100
committerStefan Metzmacher <metze@samba.org>2007-11-09 15:16:59 +0100
commit8a2e7a52c0ec6b2e5262816f61708589f29bdaeb (patch)
treed9aff7a025d8bbd3e816ab2cc187a265ae5c275c /source3/lib/nss_wrapper/nss_wrapper.c
parent637f9d9bf0947600e612057ddcd9caf137b9698e (diff)
downloadsamba-8a2e7a52c0ec6b2e5262816f61708589f29bdaeb.tar.gz
samba-8a2e7a52c0ec6b2e5262816f61708589f29bdaeb.tar.bz2
samba-8a2e7a52c0ec6b2e5262816f61708589f29bdaeb.zip
nss_wrapper: Fix some warnings
(This used to be commit b401450e8409c19d12d944c61e5553ed3334bc11)
Diffstat (limited to 'source3/lib/nss_wrapper/nss_wrapper.c')
-rw-r--r--source3/lib/nss_wrapper/nss_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/nss_wrapper/nss_wrapper.c b/source3/lib/nss_wrapper/nss_wrapper.c
index 5bf7ebda4f..5d443facd3 100644
--- a/source3/lib/nss_wrapper/nss_wrapper.c
+++ b/source3/lib/nss_wrapper/nss_wrapper.c
@@ -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;