diff src/xselect.c @ 21244:50929073a0ba

Use STRING_BYTES and SET_STRING_BYTES.
author Richard M. Stallman <rms@gnu.org>
date Sat, 21 Mar 1998 07:06:14 +0000
parents 3ca65e83c8a1
children d9bd70c35dba
line wrap: on
line diff
--- a/src/xselect.c	Sat Mar 21 06:16:35 1998 +0000
+++ b/src/xselect.c	Sat Mar 21 07:06:14 1998 +0000
@@ -1611,7 +1611,7 @@
       int num;
 
       *format_ret = 8;
-      *size_ret = XSTRING (obj)->size_byte;
+      *size_ret = STRING_BYTES (XSTRING (obj));
       *data_ret = XSTRING (obj)->data;
       bzero (charsets, (MAX_CHARSET + 1) * sizeof (int));
       num = ((*size_ret <= 1	/* Check the possibility of short cut.  */
@@ -2134,7 +2134,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_byte;
+  bytes = STRING_BYTES (XSTRING (string));
   bytes_remaining = bytes;
 
   if (! FRAME_X_DISPLAY_INFO (selected_frame)->cut_buffers_initialized)