summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gif.c b/src/gif.c
index 2dc631e..8655bdb 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -1234,7 +1234,7 @@ static nsgif_error nsgif__parse_image_data(
/* Check if the frame data runs off the end of the file */
if (block_size > len) {
frame->lzw_data_length += len;
- return NSGIF_OK;
+ return NSGIF_ERR_END_OF_DATA;
}
len -= block_size;