Skip to content

Commit

Permalink
lib/vsprintf.c: fix bug omitting minus sign of numbers (module_param)
Browse files Browse the repository at this point in the history
lib/vsprintf.c: Fix bug omitting minus sign of numbers (module_param)

Signed-off-by: Hoang-Nam Nguyen <[email protected]>
Cc: Yi Yang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Hoang-Nam Nguyen authored and Linus Torvalds committed Feb 24, 2008
1 parent 8ca3ed8 commit 4f9d5f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/vsprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ int strict_strto##type(const char *cp, unsigned int base, valtype *res) \
int ret; \
if (*cp == '-') { \
ret = strict_strtou##type(cp+1, base, res); \
if (ret != 0) \
if (!ret) \
*res = -(*res); \
} else \
ret = strict_strtou##type(cp, base, res); \
Expand Down

0 comments on commit 4f9d5f4

Please sign in to comment.