sob

Simple output bar
git clone https://git.sinitax.com/codemadness/sob
Log | Files | Refs | README | LICENSE | Upstream | sfeed.txt

commit f9bbf270b93c85592b54d7d2c6b4cb769feecc64
parent 3f4c6b998c638451e897785ea499b23395180c08
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date:   Sat,  4 Oct 2014 01:32:45 +0000

cast to size_t and use size_t specified for format string

Diffstat:
Msob.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sob.c b/sob.c @@ -256,11 +256,11 @@ line_cursor_move(size_t newpos) x += len; /* linewrap */ - if(cols > 0 && x > cols - 1) { + if(cols > 0 && x > (size_t)cols - 1) { x = x % cols; y = ((newpos + len) - x) / cols; } - fprintf(outfp, "\x1b[%lu;%luH", y + 1, x + 1); + fprintf(outfp, "\x1b[%zu;%zuH", y + 1, x + 1); fflush(outfp); }