aboutsummaryrefslogtreecommitdiff
path: root/inffast.c
diff options
context:
space:
mode:
Diffstat (limited to 'inffast.c')
-rw-r--r--inffast.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/inffast.c b/inffast.c
index 9354676..f7b550b 100644
--- a/inffast.c
+++ b/inffast.c
@@ -155,7 +155,7 @@ void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start) {
155 dist += (unsigned)hold & ((1U << op) - 1); 155 dist += (unsigned)hold & ((1U << op) - 1);
156#ifdef INFLATE_STRICT 156#ifdef INFLATE_STRICT
157 if (dist > dmax) { 157 if (dist > dmax) {
158 strm->msg = (char *)"invalid distance too far back"; 158 strm->msg = (z_const char *)"invalid distance too far back";
159 state->mode = BAD; 159 state->mode = BAD;
160 break; 160 break;
161 } 161 }
@@ -169,7 +169,7 @@ void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start) {
169 if (op > whave) { 169 if (op > whave) {
170 if (state->sane) { 170 if (state->sane) {
171 strm->msg = 171 strm->msg =
172 (char *)"invalid distance too far back"; 172 (z_const char *)"invalid distance too far back";
173 state->mode = BAD; 173 state->mode = BAD;
174 break; 174 break;
175 } 175 }
@@ -265,7 +265,7 @@ void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start) {
265 goto dodist; 265 goto dodist;
266 } 266 }
267 else { 267 else {
268 strm->msg = (char *)"invalid distance code"; 268 strm->msg = (z_const char *)"invalid distance code";
269 state->mode = BAD; 269 state->mode = BAD;
270 break; 270 break;
271 } 271 }
@@ -280,7 +280,7 @@ void ZLIB_INTERNAL inflate_fast(z_streamp strm, unsigned start) {
280 break; 280 break;
281 } 281 }
282 else { 282 else {
283 strm->msg = (char *)"invalid literal/length code"; 283 strm->msg = (z_const char *)"invalid literal/length code";
284 state->mode = BAD; 284 state->mode = BAD;
285 break; 285 break;
286 } 286 }