http://git.etherboot.org
/
people
/
mcb30
/
gpxe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[libc] Fix a validation bug in strtoul()
[people/mcb30/gpxe.git]
/
src
/
core
/
misc.c
diff --git
a/src/core/misc.c
b/src/core/misc.c
index
a54f5a1
..
1f51272
100644
(file)
--- a/
src/core/misc.c
+++ b/
src/core/misc.c
@@
-69,7
+69,7
@@
unsigned long strtoul ( const char *p, char **endp, int base ) {
charval = ( charval - 'a' + 10 );
} else if ( charval >= 'A' ) {
charval = ( charval - 'A' + 10 );
- } else {
+ } else
if ( charval <= '9' )
{
charval = ( charval - '0' );
}
if ( charval >= ( unsigned int ) base )