X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=gui.c;h=696ea1b233a5063488abb5bf0fafc6fae85ae9b4;hp=a8a7fc9fb22c44aee4ec310467abba0fcade2e78;hb=f78b535b0d7863152b7ca463b2b499485f4ea1a7;hpb=6224f70d3ad09b7066e120447573e3271c5afe22;ds=sidebyside diff --git a/gui.c b/gui.c index a8a7fc9f..696ea1b2 100644 --- a/gui.c +++ b/gui.c @@ -403,7 +403,7 @@ static int draw_top_rbe(unsigned *lines) rbe = ringbuffer_get(bot_win_rb, fvr); if (!rbe) return -1; - len = strlen(rbe->msg); + len = rbe->len; if (*lines > bot.lines) { /* first rbe is only partially visible */ offset = (*lines - bot.lines) * bot.cols; @@ -1162,7 +1162,7 @@ static void com_scroll_top(void) struct rb_entry *rbe = ringbuffer_get(bot_win_rb, i); if (!rbe) break; - lines += NUM_LINES(strlen(rbe->msg)); + lines += NUM_LINES(rbe->len); } i++; if (lines > 0 && scroll_position != i) { @@ -1193,7 +1193,7 @@ static void com_page_down(void) struct rb_entry *rbe = ringbuffer_get(bot_win_rb, i); if (!rbe) break; - lines += NUM_LINES(strlen(rbe->msg)); + lines += NUM_LINES(rbe->len); } if (lines) { scroll_position = i;