summaryrefslogtreecommitdiff
path: root/src/demuxers/demux_nsf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers/demux_nsf.c')
-rw-r--r--src/demuxers/demux_nsf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/demuxers/demux_nsf.c b/src/demuxers/demux_nsf.c
index 557adf28d..60d5049d9 100644
--- a/src/demuxers/demux_nsf.c
+++ b/src/demuxers/demux_nsf.c
@@ -97,11 +97,7 @@ static int open_nsf_file(demux_nsf_t *this) {
return 0;
/* check for the signature */
- if ((header[0] != 'N') ||
- (header[1] != 'E') ||
- (header[2] != 'S') ||
- (header[3] != 'M') ||
- (header[4] != 0x1A))
+ if (memcmp(header, "NESM\x1A", 5) != 0)
return 0;
this->total_songs = header[6];