diff options
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/doc.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 32cbd78dd74..7caf4240561 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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. diff --git a/src/doc.c b/src/doc.c index 0e22f6d1059..930afc88e23 100644 --- 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++; |