diff -r 9b9420041d8e -r 378b5ab86f77 libidav/crypto.c --- a/libidav/crypto.c Tue Sep 12 21:07:54 2023 +0200 +++ b/libidav/crypto.c Thu Sep 14 18:11:50 2023 +0200 @@ -29,8 +29,12 @@ #include #include #include +#include + +#ifndef _WIN32 #include -#include +#endif + #include "utils.h" #include "crypto.h" @@ -1195,7 +1199,7 @@ copy_iv_len = len > copy_iv_len ? copy_iv_len : len; memcpy(buf, enc->iv, copy_iv_len); - buf += copy_iv_len; + (char*)buf += copy_iv_len; len -= copy_iv_len; nread = copy_iv_len;