aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/bformatdec.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/bformatdec.cpp')
-rw-r--r--Alc/bformatdec.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Alc/bformatdec.cpp b/Alc/bformatdec.cpp
index c9e7b567..7d1e36ff 100644
--- a/Alc/bformatdec.cpp
+++ b/Alc/bformatdec.cpp
@@ -119,7 +119,7 @@ public:
};
pointer allocate(size_type n, const void* = nullptr)
- { return reinterpret_cast<T*>(al_malloc(alignment, n)); }
+ { return reinterpret_cast<T*>(al_malloc(alignment, n*sizeof(T))); }
void deallocate(pointer p, size_type)
{ al_free(p); }