From 3d530ff15c46ea17617f9ed8be8b79a282d8ae34 Mon Sep 17 00:00:00 2001 From: fduncanh Date: Thu, 2 Jun 2022 15:57:49 -0400 Subject: [PATCH] mirror_buffer.c: comment out unused variable outputlength --- lib/mirror_buffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mirror_buffer.c b/lib/mirror_buffer.c index 74d1cd1..0942457 100644 --- a/lib/mirror_buffer.c +++ b/lib/mirror_buffer.c @@ -102,7 +102,7 @@ void mirror_buffer_decrypt(mirror_buffer_t *mirror_buffer, unsigned char* input, input + mirror_buffer->nextDecryptCount, encryptlen); // Copy to output memcpy(output + mirror_buffer->nextDecryptCount, input + mirror_buffer->nextDecryptCount, encryptlen); - int outputlength = mirror_buffer->nextDecryptCount + encryptlen; + // int outputlength = mirror_buffer->nextDecryptCount + encryptlen; // Processing remaining length int restlen = (inputLen - mirror_buffer->nextDecryptCount) % 16; int reststart = inputLen - restlen; @@ -114,7 +114,7 @@ void mirror_buffer_decrypt(mirror_buffer_t *mirror_buffer, unsigned char* input, for (int j = 0; j < restlen; j++) { output[reststart + j] = mirror_buffer->og[j]; } - outputlength += restlen; + //outputlength += restlen; mirror_buffer->nextDecryptCount = 16 - restlen;// Difference 16-6=10 bytes } }