Skip to content

Commit 17e44ae

Browse files
committed
libmodplug (ReadSTM): fixed STM signature checks to be case-sensitive.
(see: Konstanty/libmodplug#39)
1 parent 240bf60 commit 17e44ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libmodplug/load_stm.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ BOOL CSoundFile_ReadSTM(CSoundFile *_this, const BYTE *lpStream, DWORD dwMemLeng
6161

6262
if ((!lpStream) || (dwMemLength < sizeof(STMHEADER))) return FALSE;
6363
if ((phdr->filetype != 2) || (phdr->unused != 0x1A)
64-
|| ((SDL_strncasecmp(phdr->trackername, "!SCREAM!", 8))
65-
&& (SDL_strncasecmp(phdr->trackername, "BMOD2STM", 8)))) return FALSE;
64+
|| ((SDL_strncmp(phdr->trackername, "!Scream!", 8))
65+
&& (SDL_strncmp(phdr->trackername, "BMOD2STM", 8)))) return FALSE;
6666
// Read STM header
6767
_this->m_nType = MOD_TYPE_STM;
6868
_this->m_nSamples = 31;

0 commit comments

Comments
 (0)