changeset 54234:e1003d782dc6

(Fsubstitute_command_keys): Fix counding bytes.
author Kenichi Handa <handa@m17n.org>
date Tue, 02 Mar 2004 06:11:48 +0000
parents 4da084c4e7a7
children ef9339f195e8
files src/doc.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/doc.c	Tue Mar 02 04:54:04 2004 +0000
+++ b/src/doc.c	Tue Mar 02 06:11:48 2004 +0000
@@ -821,7 +821,7 @@
 	  start = strp;
 	  start_idx = start - SDATA (string);
 
-	  while ((strp - SDATA (string) < SCHARS (string))
+	  while ((strp - SDATA (string) < SBYTES (string))
 		 && *strp != '}' && *strp != '>')
 	    strp++;