s3-talloc Change TALLOC_ARRAY() to talloc_array()
[samba.git] / source3 / modules / vfs_scannedonly.c
index 549eb304bdd0fde7f4e02008bfe2a8ea4fcde5dc..a47d875b646ae30808355df943f5fc395f808600 100644 (file)
@@ -632,7 +632,7 @@ static SMB_STRUCT_DIRENT *scannedonly_readdir(vfs_handle_struct *handle,
                ctx,"%s %s",result->d_name,
                STRUCTSCANO(handle->data)->scanning_message);
        namelen = strlen(notify_name);
-       newdirent = (SMB_STRUCT_DIRENT *)TALLOC_ARRAY(
+       newdirent = (SMB_STRUCT_DIRENT *)talloc_array(
                ctx, char, sizeof(SMB_STRUCT_DIRENT) + namelen + 1);
        if (!newdirent) {
                return NULL;