]> git.eshelyaron.com Git - emacs.git/commitdiff
(Fsubstitute_command_keys): Fix counding bytes.
authorKenichi Handa <handa@m17n.org>
Tue, 2 Mar 2004 06:12:15 +0000 (06:12 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 2 Mar 2004 06:12:15 +0000 (06:12 +0000)
src/ChangeLog
src/doc.c

index 32cbd78dd74e3f5ca17c1e1a9bac12974b88c046..7caf424056100f751375f76479ef28527140b94b 100644 (file)
@@ -1,3 +1,7 @@
+2004-03-02  Kenichi Handa  <handa@m17n.org>
+
+       * doc.c (Fsubstitute_command_keys): Fix counding bytes.
+
 2004-03-02  Kim F. Storm  <storm@cua.dk>
 
        * window.h (struct window): New member overlay_arrow_bitmap.
index 0e22f6d105962c31b6bda7492ddc0ac551231855..930afc88e23f709089de91cd4cde6112d9bb7515 100644 (file)
--- a/src/doc.c
+++ b/src/doc.c
@@ -821,7 +821,7 @@ thus, \\=\\=\\=\\= puts \\=\\= into the output, and \\=\\=\\=\\[ puts \\=\\[ int
          start = strp;
          start_idx = start - SDATA (string);
 
-         while ((strp - SDATA (string) < SCHARS (string))
+         while ((strp - SDATA (string) < SBYTES (string))
                 && *strp != '}' && *strp != '>')
            strp++;