diff options
| author | 2025-09-14 22:56:09 +0330 | |
|---|---|---|
| committer | 2025-09-14 22:56:09 +0330 | |
| commit | dae22b776a8322029a3f2b33fbb6738c848dd4a3 (patch) | |
| tree | 27109873037214e10705f06967ccc712cb1cda5d /src/server.c | |
| parent | stuff (diff) | |
🎶 iiiii waaas goinggg insaaaaaaaane
Diffstat (limited to 'src/server.c')
| -rw-r--r-- | src/server.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server.c b/src/server.c index 3f1a9ee..a676066 100644 --- a/src/server.c +++ b/src/server.c @@ -351,10 +351,10 @@ void paste_server( memcpy(contents_buffer + 9, packet.contents.author, 32); memcpy(contents_buffer + 41, packet.contents.author_signing_pub, 32); contents_buffer[ 73 ] = packet.contents.recipient_count; - memcpy(contents_buffer + 74, packet.contents.recipients, 32 * MAX_RECIPIENTS); - memcpy(contents_buffer + 74 + 32 * MAX_RECIPIENTS, packet.contents.data, 65536); + memcpy(contents_buffer + 74, packet.contents.recipients, 64 * MAX_RECIPIENTS); + memcpy(contents_buffer + 74 + 64 * MAX_RECIPIENTS, packet.contents.data, 65536); memcpy( - contents_buffer + 74 + 32 * MAX_RECIPIENTS + 65536, packet.contents.signature, 64); + contents_buffer + 74 + 64 * MAX_RECIPIENTS + 65536, packet.contents.signature, 64); struct sha256 calculated_hash_struct = sha256_hash(hash_input_buffer, hash_input_len); if (memcmp(calculated_hash_struct.hash, packet.hash, sizeof(hash)) != 0) { |
