changeset 20631:bcfd8b8cd42a

(lisp_data_to_selection_data): Use size_byte. (Fx_store_cut_buffer_internal): Use size_byte. (selection_data_to_lisp_data): Use make_multibyte_string.
author Richard M. Stallman <rms@gnu.org>
date Fri, 09 Jan 1998 23:22:10 +0000
parents a24936ad1a35
children 5a2caaffa7a5
files src/xselect.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xselect.c	Fri Jan 09 23:21:17 1998 +0000
+++ b/src/xselect.c	Fri Jan 09 23:22:10 1998 +0000
@@ -1610,7 +1610,7 @@
       int num;
 
       *format_ret = 8;
-      *size_ret = XSTRING (obj)->size;
+      *size_ret = XSTRING (obj)->size_byte;
       *data_ret = XSTRING (obj)->data;
       bzero (charsets, (MAX_CHARSET + 1) * sizeof (int));
       num = ((*size_ret <= 1	/* Check the possibility of short cut.  */
@@ -2133,7 +2133,7 @@
   buffer_atom = symbol_to_x_atom (FRAME_X_DISPLAY_INFO (selected_frame),
 				  display, buffer);
   data = (unsigned char *) XSTRING (string)->data;
-  bytes = XSTRING (string)->size;
+  bytes = XSTRING (string)->size_byte;
   bytes_remaining = bytes;
 
   if (! FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized)