From 2051adeb4de999a7fdceb9c59fe043da68737092 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Thu, 12 Sep 2013 12:38:20 +0200 Subject: [PATCH] Fix strtol 'endptr' return value. --- libsrc/common/strtol.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.39.5