From: Kenichi Handa Date: Tue, 2 Mar 2004 06:12:15 +0000 (+0000) Subject: (Fsubstitute_command_keys): Fix counding bytes. X-Git-Tag: ttn-vms-21-2-B4~7385 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=409949b5d5bdbc7ce47ac018535bff8092c99e84;p=emacs.git (Fsubstitute_command_keys): Fix counding bytes. --- 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++;