projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
samsung: misc: menu: increase delay in menu main loop
[oweals/u-boot.git]
/
tools
/
mxsimage.c
diff --git
a/tools/mxsimage.c
b/tools/mxsimage.c
index b214050debc6f0a5513fec83e6b18ea4c178f08a..045b35a39b380c3e5cc5c754b894d035ed541080 100644
(file)
--- a/
tools/mxsimage.c
+++ b/
tools/mxsimage.c
@@
-502,6
+502,7
@@
static int sb_token_to_long(char *tok, uint32_t *rid)
tok += 2;
+ errno = 0;
id = strtoul(tok, &endptr, 16);
if ((errno == ERANGE && id == ULONG_MAX) || (errno != 0 && id == 0)) {
fprintf(stderr, "ERR: Value can't be decoded!\n");