diff --git a/libsrc/common/strtol.c b/libsrc/common/strtol.c index b7ccdf24c..f3ce08a35 100644 --- a/libsrc/common/strtol.c +++ b/libsrc/common/strtol.c @@ -102,7 +102,7 @@ long __fastcall__ strtol (const char* nptr, char** endptr, int base) */ if (endptr) { if (CvtCount > 0) { - *endptr = (char*) S - 1; + *endptr = (char*) S; } else { *endptr = (char*) nptr; }