fix segfault
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@799 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
9b91e90877
commit
5a47bb6da9
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue