From 546e06ab45e10a6706b2ce3cf0f271f7b5b3785f Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 11 Jun 2021 11:35:53 +0200 Subject: src/crypt.c: Fix int comparison, so both compared variables are of the same type. --- src/crypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/crypt.c b/src/crypt.c index 146aa7e..defc958 100644 --- a/src/crypt.c +++ b/src/crypt.c @@ -91,7 +91,7 @@ do_aes_encrypt(const gchar *origBuffer, const gchar * password, size_t *outBuffe const size_t bufferLength = ceil((double)origBufferLength / blkLength) * blkLength; gchar *buffer = malloc(bufferLength); memcpy(buffer, origBuffer, origBufferLength); - int i; + size_t i; for (i = origBufferLength; i < bufferLength; ++i) buffer[i] = 0; -- cgit v1.2.3