summaryrefslogtreecommitdiff
path: root/num.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2010-11-09 14:24:42 +0000
committerIan C <ianc@noddybox.co.uk>2010-11-09 14:24:42 +0000
commitf6294c8fc52d500dbc4653327bc75278520146ff (patch)
tree3e0e1bcde2ba6ff3822cd3d76d16dec81b4c1175 /num.c
parentc84fd5105b380c7daf3a6f1bc3a23ba9c4c0adb1 (diff)
Fixed width of ASCII field.
Diffstat (limited to 'num.c')
-rw-r--r--num.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/num.c b/num.c
index 3140619..4414515 100644
--- a/num.c
+++ b/num.c
@@ -116,7 +116,7 @@ int main(int argc, char *argv[])
printf("Sgn. Dec : %lld\n", snum);
printf("Hex : %*.*llX\n", h_width, h_width, num);
printf("Binary : %s\n", binary(num, b_width));
- printf("Ascii : %s\n", ascii(num, b_width/4));
+ printf("Ascii : %s\n", ascii(num, b_width/8));
}
return EXIT_SUCCESS;