summaryrefslogtreecommitdiffstats
path: root/examples/VFS
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2004-12-08 01:52:23 +0000
committerJeremy Allison <jra@samba.org>2004-12-08 01:52:23 +0000
commitaee14f6d5b8f20dc0d231d8b4a59f126a4168ec9 (patch)
tree22de492ac16817f0ac759306612e792ac91e0a5b /examples/VFS
parent6ab83e59a323882aeb69404c62b09588212e8e1a (diff)
downloadsamba-aee14f6d5b8f20dc0d231d8b4a59f126a4168ec9.tar.gz
samba-aee14f6d5b8f20dc0d231d8b4a59f126a4168ec9.tar.xz
samba-aee14f6d5b8f20dc0d231d8b4a59f126a4168ec9.zip
r4092: Bring into line with new *alloc rules.
Jeremy.
Diffstat (limited to 'examples/VFS')
-rw-r--r--examples/VFS/shadow_copy_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/VFS/shadow_copy_test.c b/examples/VFS/shadow_copy_test.c
index d2b7206cd35..155181229b1 100644
--- a/examples/VFS/shadow_copy_test.c
+++ b/examples/VFS/shadow_copy_test.c
@@ -58,7 +58,7 @@ static int test_get_shadow_copy_data(vfs_handle_struct *handle, files_struct *fs
shadow_copy_data->num_volumes = num;
if (labels) {
- shadow_copy_data->labels = (SHADOW_COPY_LABEL *)talloc_zero(shadow_copy_data->mem_ctx,(num)*sizeof(SHADOW_COPY_LABEL));
+ shadow_copy_data->labels = TALLOC_ZERO_ARRAY(shadow_copy_data->mem_ctx,SHADOW_COPY_LABEL,num);
for (i=0;i<num;i++) {
snprintf(shadow_copy_data->labels[i], sizeof(SHADOW_COPY_LABEL), "@GMT-2003.08.05-12.%02u.00",i);
}