diff options
Diffstat (limited to 'sys/libkern/strtoul.c')
-rw-r--r-- | sys/libkern/strtoul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/libkern/strtoul.c b/sys/libkern/strtoul.c index 78a70e2..b5973ef 100644 --- a/sys/libkern/strtoul.c +++ b/sys/libkern/strtoul.c @@ -106,6 +106,6 @@ strtoul(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); } |