* search.c (wordify): Use SDATA.
(Freplace_match): Use SREF.
This commit is contained in:
parent
a814cc69c6
commit
5d69fe10ae
1 changed files with 2 additions and 2 deletions
|
@ -1994,7 +1994,7 @@ wordify (string)
|
|||
|
||||
if (SYNTAX (c) == Sword)
|
||||
{
|
||||
bcopy (&SREF (string, i_byte_orig), o,
|
||||
bcopy (SDATA (string) + i_byte_orig, o,
|
||||
i_byte - i_byte_orig);
|
||||
o += i_byte - i_byte_orig;
|
||||
}
|
||||
|
@ -2471,7 +2471,7 @@ since only regular expressions have distinguished subexpressions. */)
|
|||
else
|
||||
{
|
||||
/* Note that we don't have to increment POS. */
|
||||
c = SDATA (newtext)[pos_byte++];
|
||||
c = SREF (newtext, pos_byte++);
|
||||
if (buf_multibyte)
|
||||
c = unibyte_char_to_multibyte (c);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue