]> git.eshelyaron.com Git - emacs.git/commitdiff
* insdel.c (insert_from_string_1): Use SDATA.
authorKen Raeburn <raeburn@raeburn.org>
Tue, 16 Jul 2002 15:49:24 +0000 (15:49 +0000)
committerKen Raeburn <raeburn@raeburn.org>
Tue, 16 Jul 2002 15:49:24 +0000 (15:49 +0000)
src/insdel.c

index 9639adbf0fd96d7337fd7b71df29e436dff08cdf..3b13df12c4a731a9e3f4cb3884477245fd57f08d 100644 (file)
@@ -1111,7 +1111,7 @@ insert_from_string_1 (string, pos, pos_byte, nchars, nbytes,
     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);