Mercurial > emacs
diff src/insdel.c @ 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 | 40db0673e6f0 |
children | 9648dbb4974e |
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);