fix segfault

git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@799 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
NishiOwO
2025-11-24 17:55:24 +00:00
parent 9b91e90877
commit 5a47bb6da9

View File

@@ -256,7 +256,7 @@ static void frame_draw(MwWidget handle) {
if(MwUTF8Length(str) > (get_col_width(lb, j) - l) / MwTextWidth(handle, "M")) {
int ind = (get_col_width(lb, j) - l) / MwTextWidth(handle, "M");
str[ind] = 0;
memset(str + ind - 3, '.', 3);
if(ind > 3) memset(str + ind - 3, '.', 3);
}
p.x += 4;