From: Holger Schemel Date: Mon, 4 Feb 2019 08:26:00 +0000 (+0100) Subject: renamed variable X-Git-Tag: 4.1.2.0~34 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=f2167d8d406e4cdf7505cd2a055853c6f0c2a69c;p=rocksndiamonds.git renamed variable --- diff --git a/src/screens.c b/src/screens.c index 860fe3b5..c8bc6e66 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4065,8 +4065,8 @@ static void drawChooseTreeList(int first_entry, int num_page_entries, int starty = mSY + ypos * 32; int startx_text = startx + font_xoffset; int endx_text = mSX + screen_width; - int text_size = endx_text - startx_text; - int max_buffer_len = text_size / getFontWidth(font_nr); + int max_text_size = endx_text - startx_text; + int max_buffer_len = max_text_size / getFontWidth(font_nr); char buffer[max_buffer_len + 1]; node_first = getTreeInfoFirstGroupEntry(ti);