Commit 5d69fe10 authored by Ken Raeburn's avatar Ken Raeburn
Browse files

* search.c (wordify): Use SDATA.

(Freplace_match): Use SREF.
parent a814cc69
......@@ -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);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment