mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
security/samhain: fix build on big-endian
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); ^~~~~~~~~~~~~~
This commit is contained in:
parent
b5724fc172
commit
33e176b8f9
11
security/samhain/files/patch-src_sh__checksum.c
Normal file
11
security/samhain/files/patch-src_sh__checksum.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- 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
|
||||
}
|
Loading…
Reference in New Issue
Block a user