aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHoang-Nam Nguyen <hnguyen@linux.vnet.ibm.com>2008-02-23 18:23:37 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-23 20:12:14 -0500
commit4f9d5f4a353440f2265781bfa641587964901861 (patch)
tree4e0ecda794f226859349b67c18a0a3dc43155f17 /lib
parent8ca3ed87db062201e1fa15b64a9214e193fc3a8a (diff)
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
lib/vsprintf.c: Fix bug omitting minus sign of numbers (module_param) Signed-off-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com> Cc: Yi Yang <yi.y.yang@intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/vsprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/vsprintf.c b/lib/vsprintf.c
index fd987b17bda7..6021757a4496 100644
--- a/lib/vsprintf.c
+++ b/lib/vsprintf.c
@@ -234,7 +234,7 @@ int strict_strto##type(const char *cp, unsigned int base, valtype *res) \
234 int ret; \ 234 int ret; \
235 if (*cp == '-') { \ 235 if (*cp == '-') { \
236 ret = strict_strtou##type(cp+1, base, res); \ 236 ret = strict_strtou##type(cp+1, base, res); \
237 if (ret != 0) \ 237 if (!ret) \
238 *res = -(*res); \ 238 *res = -(*res); \
239 } else \ 239 } else \
240 ret = strict_strtou##type(cp, base, res); \ 240 ret = strict_strtou##type(cp, base, res); \