From 457262616e0f6d070cbbd74d2761c92bfe89dce1 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 16 Sep 1998 07:21:31 +0000 Subject: [PATCH] (message_log_check_duplicate): Count byte length of the latest message correctly. --- src/xdisp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2