aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/s3m_extractor.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2017-11-01 09:07:35 +0100
committerChristian Grothoff <christian@grothoff.org>2017-11-01 09:07:35 +0100
commit7cc63b001ceaf81143795321379c835486d0c92e (patch)
treeb9c999bddb4ea6357aede74dc559e8ae9bdd744d /src/plugins/s3m_extractor.c
parentbc2a59d25b35b0e88dab8895cf70b4d18d2844fc (diff)
downloadlibextractor-7cc63b001ceaf81143795321379c835486d0c92e.tar.gz
libextractor-7cc63b001ceaf81143795321379c835486d0c92e.zip
fix misc NULL pointer exceptions
Diffstat (limited to 'src/plugins/s3m_extractor.c')
-rw-r--r--src/plugins/s3m_extractor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/s3m_extractor.c b/src/plugins/s3m_extractor.c
index 9cd6f8f..c4789ce 100644
--- a/src/plugins/s3m_extractor.c
+++ b/src/plugins/s3m_extractor.c
@@ -80,7 +80,7 @@ EXTRACTOR_s3m_extract_method (struct EXTRACTOR_ExtractContext *ec)
80 struct S3MHeader header; 80 struct S3MHeader header;
81 char song_name_NT[29]; 81 char song_name_NT[29];
82 82
83 if (sizeof (header) > 83 if ((ssize_t) sizeof (header) >
84 ec->read (ec->cls, 84 ec->read (ec->cls,
85 &data, 85 &data,
86 sizeof (header))) 86 sizeof (header)))