diff --git a/Core/debugger.c b/Core/debugger.c index e013076..002d455 100644 --- a/Core/debugger.c +++ b/Core/debugger.c @@ -132,7 +132,7 @@ static const char *value_to_string(GB_gameboy_t *gb, uint16_t value, bool prefer } /* Avoid overflow */ - if (symbol && strlen(symbol->name) > 240) { + if (symbol && strlen(symbol->name) >= 240) { symbol = NULL; } @@ -172,7 +172,7 @@ static const char *debugger_value_to_string(GB_gameboy_t *gb, value_t value, boo } /* Avoid overflow */ - if (symbol && strlen(symbol->name) > 240) { + if (symbol && strlen(symbol->name) >= 240) { symbol = NULL; }