Signed-off-by: Alejandro Colomar <colomar.6.4.3@xxxxxxxxx> --- man3/strtol.3 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man3/strtol.3 b/man3/strtol.3 index 0feb12dbb..35252295e 100644 --- a/man3/strtol.3 +++ b/man3/strtol.3 @@ -266,7 +266,7 @@ main(int argc, char *argv[]) } str = argv[1]; - base = (argc > 2) ? atoi(argv[2]) : 10; + base = (argc > 2) ? atoi(argv[2]) : 0; errno = 0; /* To distinguish success/failure after call */ val = strtol(str, &endptr, base); -- 2.28.0