summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@raeburn.org>2002-07-16 15:49:53 +0000
committerKen Raeburn <raeburn@raeburn.org>2002-07-16 15:49:53 +0000
commit5d69fe10aec5b09b5b38de0434516e1e755148fc (patch)
treef7543f16c32364223e62eeef71e4b5d09ddab18d
parenta814cc69c6f2b7e64ea147c368c23bb513306903 (diff)
downloademacs-5d69fe10aec5b09b5b38de0434516e1e755148fc.tar.gz
* search.c (wordify): Use SDATA.
(Freplace_match): Use SREF.
-rw-r--r--src/search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c
index 7ccdab568e1..9b33e9e8d02 100644
--- a/src/search.c
+++ b/src/search.c
@@ -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);
}