changeset 46426:d7f3f0434d43

* insdel.c (insert_from_string_1): Use SDATA.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 16 Jul 2002 15:49:24 +0000
parents 2e674544b19a
children 5360a8d2f694
files src/insdel.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/insdel.c	Tue Jul 16 15:49:20 2002 +0000
+++ b/src/insdel.c	Tue Jul 16 15:49:24 2002 +0000
@@ -1111,7 +1111,7 @@
     outgoing_nbytes = nchars;
   else if (! STRING_MULTIBYTE (string))
     outgoing_nbytes
-      = count_size_as_multibyte (&SREF (string, pos_byte),
+      = count_size_as_multibyte (SDATA (string) + pos_byte,
 				 nbytes);
 
   GCPRO1 (string);