aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2004-03-02 06:12:15 +0000
committerKenichi Handa2004-03-02 06:12:15 +0000
commit409949b5d5bdbc7ce47ac018535bff8092c99e84 (patch)
tree2e41093ed75c2b81040d00049b338a4f58571083 /src
parent71efd3c4730fe1b3660fe035c19f14bb0c9f6945 (diff)
downloademacs-409949b5d5bdbc7ce47ac018535bff8092c99e84.tar.gz
emacs-409949b5d5bdbc7ce47ac018535bff8092c99e84.zip
(Fsubstitute_command_keys): Fix counding bytes.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/doc.c2
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 @@
12004-03-02 Kenichi Handa <handa@m17n.org>
2
3 * doc.c (Fsubstitute_command_keys): Fix counding bytes.
4
12004-03-02 Kim F. Storm <storm@cua.dk> 52004-03-02 Kim F. Storm <storm@cua.dk>
2 6
3 * window.h (struct window): New member overlay_arrow_bitmap. 7 * 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
821 start = strp; 821 start = strp;
822 start_idx = start - SDATA (string); 822 start_idx = start - SDATA (string);
823 823
824 while ((strp - SDATA (string) < SCHARS (string)) 824 while ((strp - SDATA (string) < SBYTES (string))
825 && *strp != '}' && *strp != '>') 825 && *strp != '}' && *strp != '>')
826 strp++; 826 strp++;
827 827