changeset 17878:2232640df372

(lisp_data_to_selection_data): charsets from `char' to `int.
author Kenichi Handa <handa@m17n.org>
date Mon, 19 May 1997 03:33:50 +0000
parents 7841036d55f4
children e7f0ba5c198c
files src/xselect.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xselect.c	Mon May 19 03:33:50 1997 +0000
+++ b/src/xselect.c	Mon May 19 03:33:50 1997 +0000
@@ -1596,13 +1596,13 @@
     {
       /* Since we are now handling multilingual text, we must consider
 	 sending back compound text.  */
-      char charsets[MAX_CHARSET + 1];
+      int charsets[MAX_CHARSET + 1];
       int num;
 
       *format_ret = 8;
       *size_ret = XSTRING (obj)->size;
       *data_ret = XSTRING (obj)->data;
-      bzero (charsets, MAX_CHARSET + 1);
+      bzero (charsets, (MAX_CHARSET + 1) * sizeof (int));
       num = ((*size_ret <= 1)	/* Check the possibility of short cut.  */
 	     ? 0
 	     : find_charset_in_str (*data_ret, *size_ret, charsets, Qnil));