diff options
-rw-r--r-- | source3/smbwrapper/shared.c | 4 | ||||
-rw-r--r-- | source3/smbwrapper/smbw_dir.c | 2 |
2 files changed, 3 insertions, 3 deletions
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; |