From 977b85f4d91050c0e35bcd88768d906c1df25af7 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Mon, 15 Jun 2009 21:36:44 +0000 Subject: [PATCH] (detect_coding_utf_16): Fix typo counting odd bytes. --- src/ChangeLog | 4 ++++ src/coding.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 373341d39ae..bc4ce2aa0af 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-06-15 Andreas Schwab + + * coding.c (detect_coding_utf_16): Fix typo counting odd bytes. + 2009-06-15 Kenichi Handa * process.c (status_message): Fix previous change. Be sure to diff --git a/src/coding.c b/src/coding.c index aeb2b355493..8c43929693e 100644 --- a/src/coding.c +++ b/src/coding.c @@ -1682,7 +1682,7 @@ detect_coding_utf_16 (coding, detect_info) } if (! o[c2]) { - o[c1] = 1; + o[c2] = 1; o_num++; if (o_num >= 128) break; -- 2.39.2