changeset 46432:a4697b0a338e

* search.c (wordify): Use SDATA. (Freplace_match): Use SREF.
author Ken Raeburn <raeburn@raeburn.org>
date Tue, 16 Jul 2002 15:49:53 +0000
parents db28853d1e82
children ebc447bb0250
files src/search.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/search.c	Tue Jul 16 15:49:48 2002 +0000
+++ b/src/search.c	Tue Jul 16 15:49:53 2002 +0000
@@ -1994,7 +1994,7 @@
 
       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 @@
 	  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);
 	    }