This commit is contained in:
tocariimaa 2025-02-03 20:16:38 -03:00
parent d5c2167efc
commit 842b8060c8

3
pila.c
View file

@ -463,8 +463,7 @@ read_number(Str ns, u64 *res)
n = n * 10 + cv;
++p;
}
if (p < pend)
if (p < pend) /* trailling characters, invalid number */
return false;
*res = n;