8 -> UTF8_SIZE.

This commit is contained in:
Nicholas Marriott
2009-03-29 11:18:28 +00:00
parent 4cbf7d489e
commit 23fef99009
5 changed files with 14 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $Id: screen-write.c,v 1.41 2009-03-29 11:06:22 nicm Exp $ */
/* $Id: screen-write.c,v 1.42 2009-03-29 11:18:28 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
@ -561,14 +561,14 @@ screen_write_cell(
}
tmp_gu = grid_view_get_utf8(gd, s->cx - 1, s->cy);
for (i = 0; i < 8; i++) {
for (i = 0; i < UTF8_SIZE; i++) {
if (tmp_gu->data[i] == 0xff)
break;
}
memcpy(tmp_gu->data + i, udata, 8 - i);
memcpy(tmp_gu->data + i, udata, UTF8_SIZE - i);
/* Assume the previous character has just been input. */
for (size = 0; size < 8; size++) {
for (size = 0; size < UTF8_SIZE; size++) {
if (udata[size] == 0xff)
break;
}