1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-07 04:10:27 -08:00

* insdel.c (insert_from_string_1): Use SDATA.

This commit is contained in:
Ken Raeburn 2002-07-16 15:49:24 +00:00
parent 0866375057
commit f7e233a87f

View 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);