diff --git a/frontend/main.c b/frontend/main.c index 0f20f53d..b0484529 100644 --- a/frontend/main.c +++ b/frontend/main.c @@ -207,7 +207,7 @@ static int validate_int(const char source[], int *p_val) { int length = (int) strlen(source); if (length > 9) { /* Prevent overflow */ - length = 9; + return 0; } for (i = 0; i < length; i++) { if (source[i] < '0' || source[i] > '9') {