summaryrefslogtreecommitdiff
path: root/src/xselect.c
diff options
context:
space:
mode:
authorKenichi Handa <handa@m17n.org>1997-03-18 23:31:34 +0000
committerKenichi Handa <handa@m17n.org>1997-03-18 23:31:34 +0000
commita549539882d5a5aa32e764cb0fa8494aab615b6b (patch)
tree655c50ec98d5607ac4fdf4a09260076f7b8c688f /src/xselect.c
parent84a2955bf03f8478bf4ec726506d4645968b3e64 (diff)
downloademacs-a549539882d5a5aa32e764cb0fa8494aab615b6b.tar.gz
Adjusted for the change of MAX_CHARSET.
Diffstat (limited to 'src/xselect.c')
-rw-r--r--src/xselect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c
index 3de9748b7b5..2ba3d869019 100644
--- a/src/xselect.c
+++ b/src/xselect.c
@@ -1582,13 +1582,13 @@ lisp_data_to_selection_data (display, obj,
{
/* Since we are now handling multilingual text, we must consider
sending back compound text. */
- char charsets[MAX_CHARSET];
+ char charsets[MAX_CHARSET + 1];
int num;
*format_ret = 8;
*size_ret = XSTRING (obj)->size;
*data_ret = XSTRING (obj)->data;
- bzero (charsets, MAX_CHARSET);
+ bzero (charsets, MAX_CHARSET + 1);
num = ((*size_ret <= 1) /* Check the possibility of short cut. */
? 0
: find_charset_in_str (*data_ret, *size_ret, charsets));