mirror of
https://gitea.nishi.boats/pyrite-dev/milsko
synced 2026-01-07 18:09:44 +00:00
fix stuff
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@281 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
@@ -102,7 +102,7 @@ static void key(MwWidget handle, int code) {
|
||||
t->cursor++;
|
||||
} else {
|
||||
int incr = 0;
|
||||
out = malloc(strlen(str) + 1 + 1);
|
||||
out = malloc(strlen(str) + 5 + 1);
|
||||
incr += MwUTF8Copy(str, 0, out, 0, t->cursor);
|
||||
MwUTF32ToUTF8(code, out + incr);
|
||||
MwUTF8Copy(str, t->cursor, out, t->cursor + 1, MwUTF8Length(str) - t->cursor);
|
||||
|
||||
Reference in New Issue
Block a user