From 59f491f48a117274a695fcc04d7510ad5fd037fb Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Thu, 11 Nov 2021 16:26:59 -0500 Subject: [PATCH] refactor: Replace magic number --- runtime/src/sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/sandbox.c b/runtime/src/sandbox.c index 0841e82..45d4a56 100644 --- a/runtime/src/sandbox.c +++ b/runtime/src/sandbox.c @@ -159,7 +159,7 @@ sandbox_allocate(struct sandbox_request *sandbox_request) #ifdef LOG_STATE_CHANGES sandbox->state_history_count = 0; sandbox->state_history[sandbox->state_history_count++] = SANDBOX_ALLOCATED; - memset(&sandbox->state_history, 0, 100); + memset(&sandbox->state_history, 0, SANDBOX_STATE_HISTORY_CAPACITY); #endif /* Set state to initializing */