changeset 23257:b72cefab3254

(message_log_check_duplicate): Count byte length of the latest message correctly.
author Kenichi Handa <handa@m17n.org>
date Wed, 16 Sep 1998 07:21:31 +0000
parents e54c6c6c2746
children 2f8585bcea90
files src/xdisp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Tue Sep 15 15:22:59 1998 +0000
+++ b/src/xdisp.c	Wed Sep 16 07:21:31 1998 +0000
@@ -447,7 +447,7 @@
      int prev_bol_byte, this_bol_byte;
 {
   int i;
-  int len = Z - 1 - this_bol;
+  int len = Z_BYTE - 1 - this_bol_byte;
   int seen_dots = 0;
   unsigned char *p1 = BUF_BYTE_ADDRESS (current_buffer, prev_bol_byte);
   unsigned char *p2 = BUF_BYTE_ADDRESS (current_buffer, this_bol_byte);