mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 18:09:44 +00:00
fix segfault
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@799 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -256,7 +256,7 @@ static void frame_draw(MwWidget handle) {
|
|||||||
if(MwUTF8Length(str) > (get_col_width(lb, j) - l) / MwTextWidth(handle, "M")) {
|
if(MwUTF8Length(str) > (get_col_width(lb, j) - l) / MwTextWidth(handle, "M")) {
|
||||||
int ind = (get_col_width(lb, j) - l) / MwTextWidth(handle, "M");
|
int ind = (get_col_width(lb, j) - l) / MwTextWidth(handle, "M");
|
||||||
str[ind] = 0;
|
str[ind] = 0;
|
||||||
memset(str + ind - 3, '.', 3);
|
if(ind > 3) memset(str + ind - 3, '.', 3);
|
||||||
}
|
}
|
||||||
|
|
||||||
p.x += 4;
|
p.x += 4;
|
||||||
|
|||||||
Reference in New Issue
Block a user