diff options
Diffstat (limited to 'src/utils.c')
-rw-r--r-- | src/utils.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils.c b/src/utils.c index 2f4efbb..24872ed 100644 --- a/src/utils.c +++ b/src/utils.c @@ -22,7 +22,7 @@ #include <stdarg.h> #include <stdlib.h> -unsigned long get_file_size(char *file) +unsigned long get_file_size(const char *file) { FILE *fd = fopen(file, "r"); unsigned long len = 0; @@ -53,7 +53,7 @@ void progressbar(unsigned long long part, unsigned long long total) squeue_push2(p, "bar", msg, 0); } else { #endif - printf("\e[K %3d%% [", pc); + printf("\x1b[K %3d%% [", pc); if (columns) cols = atoi(columns); cols-=15; |