summaryrefslogtreecommitdiff
path: root/linux/dev/lib
diff options
context:
space:
mode:
Diffstat (limited to 'linux/dev/lib')
-rw-r--r--linux/dev/lib/vsprintf.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/linux/dev/lib/vsprintf.c b/linux/dev/lib/vsprintf.c
index 096e2ec..0beb747 100644
--- a/linux/dev/lib/vsprintf.c
+++ b/linux/dev/lib/vsprintf.c
@@ -131,13 +131,17 @@ number (char *str, long num, int base, int size, int precision, int type)
if (sign)
*str++ = sign;
if (type & SPECIAL)
- if (base == 8)
- *str++ = '0';
- else if (base == 16)
- {
- *str++ = '0';
- *str++ = digits[33];
- }
+ {
+ if (base == 8)
+ {
+ *str++ = '0';
+ }
+ else if (base == 16)
+ {
+ *str++ = '0';
+ *str++ = digits[33];
+ }
+ }
if (!(type & LEFT))
while (size-- > 0)
*str++ = c;