summaryrefslogtreecommitdiff
path: root/src/hbar.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hbar.c')
-rw-r--r--src/hbar.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/hbar.c b/src/hbar.c
index 17840d8..64e91b7 100644
--- a/src/hbar.c
+++ b/src/hbar.c
@@ -118,7 +118,7 @@ int main (int argc, char **argv) {
printf(RESET "\r");
printf(color);
- for (int i = 0; i < width; i++) {
+ for (int i = 0; i <= width; i++) {
int reset_at = 0;
if (total > 0) {
float percent = (float) completed / (float) total;
@@ -139,7 +139,7 @@ int main (int argc, char **argv) {
}
if (line != -1) {
- printf("\033[%dB", line, 0);
+ printf("\033[%dB", line);
}
if (terminate) {
printf(RESET "\n");