From 409949b5d5bdbc7ce47ac018535bff8092c99e84 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Tue, 2 Mar 2004 06:12:15 +0000 Subject: [PATCH] (Fsubstitute_command_keys): Fix counding bytes. --- src/ChangeLog | 4 ++++ src/doc.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 + + * doc.c (Fsubstitute_command_keys): Fix counding bytes. + 2004-03-02 Kim F. Storm * 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++; -- 2.39.2