when parsing millisec in timestamp, force use of base 10 in strtol()

This commit is contained in:
CK Tan 2021-06-04 17:09:25 -07:00
parent d7dd697c35
commit 789930f7c9
1 changed files with 1 additions and 1 deletions

2
toml.c
View File

@ -1944,7 +1944,7 @@ int toml_rtots(toml_raw_t src_, toml_timestamp_t* ret)
char* qq;
p++;
errno = 0;
*millisec = strtol(p, &qq, 0);
*millisec = strtol(p, &qq, 10);
if (errno) {
return -1;
}