fix: Fixed size parameter when sending state data after env reset

This commit is contained in:
Tristan Russell 2025-01-19 17:58:46 -05:00
parent a55d8f564f
commit c356671e4a
1 changed files with 1 additions and 1 deletions

2
main.c
View File

@ -95,7 +95,7 @@ int StartEnv(int port) {
Reset(&env, &state);
char data[sizeof(state)];
memcpy(&data, &state, sizeof(state));
send(client_sock, data, obs_size, 0);
send(client_sock, data, sizeof(state), 0);
}
}
RemoveServer(port);