From 5d69fe10aec5b09b5b38de0434516e1e755148fc Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 16 Jul 2002 15:49:53 +0000 Subject: [PATCH] * search.c (wordify): Use SDATA. (Freplace_match): Use SREF. --- src/search.c | 4 ++-- 1 file 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); } -- 2.39.2