diff options
author | Yi Yang <yi.y.yang@intel.com> | 2008-08-12 15:08:58 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-08-12 16:07:29 -0700 |
commit | 29a6d39bf3a890ad1d29e66baa9f4bc8d9334f3a (patch) | |
tree | 099db96f315e95e28755e88a2914c1abbc3dcb70 /lib/vsprintf.c | |
parent | afa9b649aa699297258dbb67aaae651c9ad4245f (diff) | |
download | linux-stable-29a6d39bf3a890ad1d29e66baa9f4bc8d9334f3a.tar.gz linux-stable-29a6d39bf3a890ad1d29e66baa9f4bc8d9334f3a.tar.bz2 linux-stable-29a6d39bf3a890ad1d29e66baa9f4bc8d9334f3a.zip |
lib/vsprintf.c: wrong conversion function used
Fix wrong conversion function used by strict_strtou*
Signed-off-by: Yi Yang <yi.y.yang@intel.com>
Reported-by: Swen Schillig <swen@vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib/vsprintf.c')
-rw-r--r-- | lib/vsprintf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c index 1dc2d1d18fa8..d8d1d1142248 100644 --- 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_strtoul(cp, &tail, base); \ + val = simple_strtou##type(cp, &tail, base); \ if ((*tail == '\0') || \ ((len == (size_t)(tail - cp) + 1) && (*tail == '\n'))) {\ *res = val; \ |