aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-11 11:35:53 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-06-11 11:35:59 +0200
commit546e06ab45e10a6706b2ce3cf0f271f7b5b3785f (patch)
treedfcef0793ae4311ac94bdb854080a6a7b27a375c /src
parenta96e1087d2b3893d2526fcb27349c1eca04fa00c (diff)
downloadremote-logon-service-546e06ab45e10a6706b2ce3cf0f271f7b5b3785f.tar.gz
remote-logon-service-546e06ab45e10a6706b2ce3cf0f271f7b5b3785f.tar.bz2
remote-logon-service-546e06ab45e10a6706b2ce3cf0f271f7b5b3785f.zip
src/crypt.c: Fix int comparison, so both compared variables are of the same type.
Diffstat (limited to 'src')
-rw-r--r--src/crypt.c2
1 files changed, 1 insertions, 1 deletions
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;