diff options
author | Thomas White <taw@bitwiz.org.uk> | 2009-11-18 21:23:33 +0100 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2009-11-18 21:23:33 +0100 |
commit | e484862e22fc7f2f3394ef5a21f7955edf923ded (patch) | |
tree | e723ae2f7265473e5de1b923c358d7e07db34094 /src/utils.c | |
parent | dcd717de4415c007cf47faf85ec382549f129797 (diff) |
Move zero-terminator to the right position
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 2 |
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"); |