summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-01-30 10:44:08 (GMT)
committer Vincent Sanders <vince@kyllikki.org>2017-01-30 10:44:08 (GMT)
commit38c65283c2303516e792591721ce2091c44231dc (patch)
tree344b26e40cc3afc54f445dde17ef8e588a042de8
parentaa6d8064c05f5a45132b154c266b5e2360a84dff (diff)
downloadlibnsgif-38c65283c2303516e792591721ce2091c44231dc.tar.gz
libnsgif-38c65283c2303516e792591721ce2091c44231dc.tar.bz2
remove use of magic number for header size
-rw-r--r--src/libnsgif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libnsgif.c b/src/libnsgif.c
index b6d69e4..9045bbd 100644
--- a/src/libnsgif.c
+++ b/src/libnsgif.c
@@ -1195,7 +1195,7 @@ gif_result gif_initialise(gif_animation *gif, size_t size, unsigned char *data)
/* Check for sufficient data to be a GIF (6-byte header + 7-byte
* logical screen descriptor)
*/
- if (gif->buffer_size < 13) {
+ if (gif->buffer_size < GIF_STANDARD_HEADER_SIZE) {
return GIF_INSUFFICIENT_DATA;
}