From a6ee90343e7d5398f93ad589fda2013da1b65039 Mon Sep 17 00:00:00 2001 From: Dongha Kim Date: Mon, 11 Mar 2024 09:26:33 -0700 Subject: [PATCH] Add to make new pr --- core/federated/federate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/federated/federate.c b/core/federated/federate.c index edc8c5338..56e869624 100644 --- a/core/federated/federate.c +++ b/core/federated/federate.c @@ -509,7 +509,7 @@ static int handle_tagged_message(int* socket, int fed_id) { _lf_get_environments(&env); // Read the header which contains the timestamp. - size_t bytes_to_read = + size_t bytes_to_read = sizeof(uint16_t) + sizeof(uint16_t) + sizeof(int32_t) + sizeof(instant_t) + sizeof(microstep_t); unsigned char buffer[bytes_to_read]; if (read_from_socket_close_on_error(socket, bytes_to_read, buffer)) {