diff options
Diffstat (limited to 'lib/libexfat.c')
-rw-r--r-- | lib/libexfat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libexfat.c b/lib/libexfat.c index 0bcb4a4..9cc184f 100644 --- a/lib/libexfat.c +++ b/lib/libexfat.c @@ -1046,6 +1046,8 @@ int exfat_parse_ulong(const char *s, unsigned long *out) { char *endptr; + errno = 0; + *out = strtoul(s, &endptr, 0); if (errno) |