Skip to content

Commit

Permalink
Fixed zeroing out pTrackData
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jun 27, 2015
1 parent ee0aa78 commit 5517474
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion external/libmodplug-0.8.8.4/src/load_amf.cpp
Expand Up @@ -371,7 +371,7 @@ BOOL CSoundFile::ReadAMF(LPCBYTE lpStream, const DWORD dwMemLength)
}
// Store tracks positions
BYTE **pTrackData = new BYTE *[realtrackcnt];
memset(pTrackData, 0, sizeof(pTrackData));
memset(pTrackData, 0, realtrackcnt*sizeof(*pTrackData));
for (UINT iTrack=0; iTrack<realtrackcnt; iTrack++) if (dwMemPos <= dwMemLength - 3)
{
UINT nTrkSize = bswapLE16(*(USHORT *)(lpStream+dwMemPos));
Expand Down

0 comments on commit 5517474

Please sign in to comment.