diff options
Diffstat (limited to 'inffast.c')
-rw-r--r-- | inffast.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* inffast.c -- fast decoding | 1 | /* inffast.c -- fast decoding |
2 | * Copyright (C) 1995-2006 Mark Adler | 2 | * Copyright (C) 1995-2008 Mark Adler |
3 | * For conditions of distribution and use, see copyright notice in zlib.h | 3 | * For conditions of distribution and use, see copyright notice in zlib.h |
4 | */ | 4 | */ |
5 | 5 | ||
@@ -188,7 +188,8 @@ unsigned start; /* inflate()'s starting value for strm->avail_out */ | |||
188 | op = dist - op; /* distance back in window */ | 188 | op = dist - op; /* distance back in window */ |
189 | if (op > whave) { | 189 | if (op > whave) { |
190 | if (state->sane) { | 190 | if (state->sane) { |
191 | strm->msg = (char *)"invalid distance too far back"; | 191 | strm->msg = |
192 | (char *)"invalid distance too far back"; | ||
192 | state->mode = BAD; | 193 | state->mode = BAD; |
193 | break; | 194 | break; |
194 | } | 195 | } |