# HG changeset patch
# User Kenichi Handa <handa@m17n.org>
# Date 1078207908 0
# Node ID e1003d782dc6c62e4a497b2cae00d0629d4e9bcd
# Parent  4da084c4e7a7bed780e0417ae575f48e47b604cf
(Fsubstitute_command_keys): Fix counding bytes.

diff -r 4da084c4e7a7 -r e1003d782dc6 src/doc.c
--- 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++;