From: Kenichi Handa Date: Wed, 16 Sep 1998 07:21:31 +0000 (+0000) Subject: (message_log_check_duplicate): Count byte length of the X-Git-Tag: emacs-20.4~1692 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=457262616e0f6d070cbbd74d2761c92bfe89dce1;p=emacs.git (message_log_check_duplicate): Count byte length of the latest message correctly. --- diff --git a/src/xdisp.c b/src/xdisp.c index cf6ae256073..9abc887a747 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -447,7 +447,7 @@ message_log_check_duplicate (prev_bol, prev_bol_byte, this_bol, this_bol_byte) 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);