Mercurial > hg > dmlib
comparison src/dmzlib.c @ 992:929e43afbdb1
Improve error message slightly.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Sat, 28 Feb 2015 05:06:55 +0200 |
parents | acd91a57fe8c |
children | cd0e0270e1ce |
comparison
equal
deleted
inserted
replaced
991:acd91a57fe8c | 992:929e43afbdb1 |
---|---|
446 nlen = (header[3] << 8) | header[2]; | 446 nlen = (header[3] << 8) | header[2]; |
447 | 447 |
448 if (nlen != (len ^ 0xffff)) | 448 if (nlen != (len ^ 0xffff)) |
449 { | 449 { |
450 return dmError(DMERR_DATA_ERROR, | 450 return dmError(DMERR_DATA_ERROR, |
451 "Compressed data corrupt.\n"); | 451 "Compressed data corrupt %04x :: %04x [%04x].\n", |
452 nlen, len, len ^ 0xffff); | |
452 } | 453 } |
453 | 454 |
454 if (ctx->zbuffer + len > ctx->zbufferEnd) | 455 if (ctx->zbuffer + len > ctx->zbufferEnd) |
455 { | 456 { |
456 return dmError(DMERR_BOUNDS, | 457 return dmError(DMERR_BOUNDS, |