diff options
Diffstat (limited to 'sys/libkern/strtol.c')
-rw-r--r-- | sys/libkern/strtol.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libkern/strtol.c b/sys/libkern/strtol.c index ccab1ef..f645cb5 100644 --- a/sys/libkern/strtol.c +++ b/sys/libkern/strtol.c @@ -127,6 +127,6 @@ strtol(nptr, endptr, base) } else if (neg) acc = -acc; if (endptr != 0) - *endptr = (char *)(any ? s - 1 : nptr); + *((const char **)endptr) = any ? s - 1 : nptr; return (acc); } |