comparison src/dmzlib.c @ 2513:c72196d3fdbe

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 02 May 2020 08:16:22 +0300
parents 8d8197b3d052
children 9807ae37ad69
comparison
equal deleted inserted replaced
2512:14ed64742010 2513:c72196d3fdbe
540 540
541 // Check if output buffer needs to expand 541 // Check if output buffer needs to expand
542 if (ctx->outBuffer + len > ctx->outBufferEnd && 542 if (ctx->outBuffer + len > ctx->outBufferEnd &&
543 (ret = dmZLibExpand(ctx, ctx->outBuffer, len)) != DMERR_OK) 543 (ret = dmZLibExpand(ctx, ctx->outBuffer, len)) != DMERR_OK)
544 { 544 {
545 return dmErrorDBG(DMERR_DATA_ERROR, 545 return dmErrorDBG(ret,
546 "Could not expand output buffer: %d, %s\n", 546 "Could not expand output buffer: %s\n",
547 ret, dmErrorStr(ret)); 547 dmErrorStr(ret));
548 } 548 }
549 549
550 // Copy uncompressed data 550 // Copy uncompressed data
551 memcpy(ctx->outBuffer, ctx->inBuffer, len); 551 memcpy(ctx->outBuffer, ctx->inBuffer, len);
552 ctx->inBuffer += len; 552 ctx->inBuffer += len;