when parsing millisec in timestamp, force use of base 10 in strtol()
This commit is contained in:
parent
d7dd697c35
commit
789930f7c9
1 changed files with 1 additions and 1 deletions
2
toml.c
2
toml.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue