aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-11-18 21:23:33 +0100
committerThomas White <taw@bitwiz.org.uk>2009-11-18 21:23:33 +0100
commite484862e22fc7f2f3394ef5a21f7955edf923ded (patch)
treee723ae2f7265473e5de1b923c358d7e07db34094 /src/utils.c
parentdcd717de4415c007cf47faf85ec382549f129797 (diff)
Move zero-terminator to the right position
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index d58f4db8..2e536979 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -169,7 +169,7 @@ void progress_bar(int val, int total)
for ( i=0; i<n; i++ ) s[i] = '=';
for ( i=n; i<80; i++ ) s[i] = '.';
- s[n] = '\0';
+ s[80] = '\0';
printf("\r|%s|", s);
if ( val == total ) printf("\n");