From 93386ba1cfc5aaaef73d143d2bae7c6c5725f7d8 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 3 Apr 2006 13:53:57 +0000 Subject: r14889: Fix smbwrapper compile (This used to be commit 0f087fd40ad502513c3775587c07c86fc53bf718) --- source3/smbwrapper/shared.c | 4 ++-- source3/smbwrapper/smbw_dir.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'source3') diff --git a/source3/smbwrapper/shared.c b/source3/smbwrapper/shared.c index ca8df5841d..c7f1951f8b 100644 --- a/source3/smbwrapper/shared.c +++ b/source3/smbwrapper/shared.c @@ -111,7 +111,7 @@ char *smbw_getshared(const char *name) if (fstat(shared_fd, &st)) goto failed; if (st.st_size != shared_size) { - var = (char *)Realloc(variables, st.st_size); + var = (char *)Realloc(variables, st.st_size, True); if (!var) goto failed; else variables = var; shared_size = st.st_size; @@ -167,7 +167,7 @@ void smbw_setshared(const char *name, const char *val) l1 = strlen(name)+1; l2 = strlen(val)+1; - var = (char *)Realloc(variables, shared_size + l1+l2+4); + var = (char *)Realloc(variables, shared_size + l1+l2+4, True); if (!var) { DEBUG(0,("out of memory in smbw_setshared\n")); diff --git a/source3/smbwrapper/smbw_dir.c b/source3/smbwrapper/smbw_dir.c index a89af54e1a..8ba1de4726 100644 --- a/source3/smbwrapper/smbw_dir.c +++ b/source3/smbwrapper/smbw_dir.c @@ -85,7 +85,7 @@ static void smbw_dir_add(struct file_info *finfo, const char *mask, if (cur_dir->malloced == cur_dir->count) { cdl = (struct file_info *)Realloc(cur_dir->list, sizeof(cur_dir->list[0])* - (cur_dir->count+100)); + (cur_dir->count+100), True); if (!cdl) { /* oops */ return; -- cgit