diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-29 11:18:28 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2009-03-29 11:18:28 +0000 |
commit | 23fef99009dc21eee74865cdf66fb19822876055 (patch) | |
tree | 1e22e685b2ecbd0e651cfdc2acd956193352382b /screen-write.c | |
parent | 4cbf7d489e1d27a0b85c5d2dee791b108bbb6530 (diff) | |
download | rtmux-23fef99009dc21eee74865cdf66fb19822876055.tar.gz rtmux-23fef99009dc21eee74865cdf66fb19822876055.tar.bz2 rtmux-23fef99009dc21eee74865cdf66fb19822876055.zip |
8 -> UTF8_SIZE.
Diffstat (limited to 'screen-write.c')
-rw-r--r-- | screen-write.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/screen-write.c b/screen-write.c index e6fbe514..da5b8ba0 100644 --- a/screen-write.c +++ b/screen-write.c @@ -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; } |