projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afa9b64
)
lib/vsprintf.c: wrong conversion function used
author
Yi Yang
<
[email protected]
>
Tue, 12 Aug 2008 22:08:58 +0000
(15:08 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 12 Aug 2008 23:07:29 +0000
(16:07 -0700)
Fix wrong conversion function used by strict_strtou*
Signed-off-by: Yi Yang <
[email protected]
>
Reported-by: Swen Schillig <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
lib/vsprintf.c
patch
|
blob
|
history
diff --git
a/lib/vsprintf.c
b/lib/vsprintf.c
index 1dc2d1d18fa8fddb9887dad750461d9f63faeb6f..d8d1d1142248a511561b401a87b1590a5f94ba33 100644
(file)
--- a/
lib/vsprintf.c
+++ b/
lib/vsprintf.c
@@
-220,7
+220,7
@@
int strict_strtou##type(const char *cp, unsigned int base, valtype *res)\
if (len == 0) \
return -EINVAL; \
\
- val = simple_strtou
l(cp, &tail, base);
\
+ val = simple_strtou
##type(cp, &tail, base);
\
if ((*tail == '\0') || \
((len == (size_t)(tail - cp) + 1) && (*tail == '\n'))) {\
*res = val; \