summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshfil <filip.gawin@zoho.com>2020-05-13 17:48:07 +0200
committerGitHub <noreply@github.com>2020-05-13 17:48:07 +0200
commit7036e80fc692f49d9997a16d05762bc295f96a97 (patch)
tree0416d1466be376a4bcfac345afce45983a29a130 /src
parent94bf7d9ea1318464b4ad5820ce118d32cf3dee1e (diff)
Fix calloc in CdStreamPosix
Diffstat (limited to 'src')
-rw-r--r--src/core/CdStreamPosix.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/CdStreamPosix.cpp b/src/core/CdStreamPosix.cpp
index 7c49f5f1..4d6bcdab 100644
--- a/src/core/CdStreamPosix.cpp
+++ b/src/core/CdStreamPosix.cpp
@@ -168,7 +168,7 @@ CdStreamInit(int32 numChannels)
gNumChannels = numChannels;
- gpReadInfo = (CdReadInfo *)calloc(sizeof(CdReadInfo), numChannels);
+ gpReadInfo = (CdReadInfo *)calloc(numChannels, sizeof(CdReadInfo));
ASSERT( gpReadInfo != nil );
CDDEBUG("read info %p", gpReadInfo);