aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/box.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/box.c')
-rw-r--r--src/box.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/box.c b/src/box.c
index ca5479e..6ba833d 100644
--- a/src/box.c
+++ b/src/box.c
@@ -429,7 +429,8 @@ AES_StatusCode aes_box_encrypt_buffer(
box, src, dest, err_details)))
return status;
- (char*) src += block_size, (char*) dest += block_size;
+ src = (char*) src + block_size;
+ dest = (char*) dest + block_size;
}
if (padding_size == 0)
@@ -596,7 +597,8 @@ AES_StatusCode aes_box_decrypt_buffer(
box, src, dest, err_details)))
return status;
- (char*) src += block_size, (char*) dest += block_size;
+ src = (char*) src + block_size;
+ dest = (char*) dest + block_size;
}
if (max_padding_size == 0)