x_sh_checksum.c:471:15: error: incompatible pointer to integer conversion passing 'sha2_word32[8]' (aka 'unsigned int[8]') to parameter of type 'int' [-Wint-conversion]
memset(d, context->state, SHA256_DIGEST_LENGTH);
^~~~~~~~~~~~~~
12 lines
351 B
C
12 lines
351 B
C
--- src/sh_checksum.c.orig 2024-01-27 14:26:35 UTC
|
|
+++ src/sh_checksum.c
|
|
@@ -468,7 +468,7 @@ void SHA256_Final(sha2_byte digest[], SHA256_CTX* cont
|
|
}
|
|
}
|
|
#else
|
|
- memset(d, context->state, SHA256_DIGEST_LENGTH);
|
|
+ memcpy(d, context->state, SHA256_DIGEST_LENGTH);
|
|
/* bcopy(context->state, d, SHA256_DIGEST_LENGTH); */
|
|
#endif
|
|
}
|