summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/strtoull.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/stdlib/strtoull.c')
-rw-r--r--src/lib/libc/stdlib/strtoull.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libc/stdlib/strtoull.c b/src/lib/libc/stdlib/strtoull.c
index a5d07de6cf..d7733e4003 100644
--- a/src/lib/libc/stdlib/strtoull.c
+++ b/src/lib/libc/stdlib/strtoull.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: strtoull.c,v 1.8 2015/09/13 08:31:48 guenther Exp $ */ 1/* $OpenBSD: strtoull.c,v 1.9 2017/07/06 16:23:11 millert Exp $ */
2/* 2/*
3 * Copyright (c) 1992 The Regents of the University of California. 3 * Copyright (c) 1992 The Regents of the University of California.
4 * All rights reserved. 4 * All rights reserved.
@@ -71,8 +71,8 @@ strtoull(const char *nptr, char **endptr, int base)
71 if (c == '+') 71 if (c == '+')
72 c = *s++; 72 c = *s++;
73 } 73 }
74 if ((base == 0 || base == 16) && 74 if ((base == 0 || base == 16) && c == '0' &&
75 c == '0' && (*s == 'x' || *s == 'X')) { 75 (*s == 'x' || *s == 'X') && isxdigit((unsigned char)s[1])) {
76 c = s[1]; 76 c = s[1];
77 s += 2; 77 s += 2;
78 base = 16; 78 base = 16;