diff options
author | Kenichi Handa <handa@m17n.org> | 1997-03-18 23:31:34 +0000 |
---|---|---|
committer | Kenichi Handa <handa@m17n.org> | 1997-03-18 23:31:34 +0000 |
commit | 467e7675540bdf5f21379a0ee5d7f92627e3ead3 (patch) | |
tree | f3ac95a241bea13cfbcd2bb95e4a55deffc4deff /src/xselect.c | |
parent | 1df19f02032a543c303bb21982ebd2a1278677ff (diff) | |
download | emacs-467e7675540bdf5f21379a0ee5d7f92627e3ead3.tar.gz |
Adjusted for the change of MAX_CHARSET.
Diffstat (limited to 'src/xselect.c')
-rw-r--r-- | src/xselect.c | 4 |
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)); |