aboutsummaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
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");