summaryrefslogtreecommitdiff
path: root/src/coding.c
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2002-07-17 10:21:01 +0000
committerDave Love <fx@gnu.org>2002-07-17 10:21:01 +0000
commit6f197c07d05b591d94527fca34bce3ce2bedca60 (patch)
treeec184bf50b91107438855a76cc76a07b316eadc7 /src/coding.c
parentfd3aa3e1b9dada9e28c371db10ec0a89b9d069ed (diff)
(adjust_coding_eol_type): Fix eol_type/eol_seen mixup.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coding.c b/src/coding.c
index f9dd3f87742..bd548799a17 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -1,7 +1,7 @@
/* Coding system handler (conversion, detection, and etc).
Copyright (C) 1995, 1997, 1998 Electrotechnical Laboratory, JAPAN.
Licensed to the Free Software Foundation.
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Copyright (C) 2001, 2002
National Institute of Advanced Industrial Science and Technology (AIST)
Registration Number H13PRO009
@@ -4982,9 +4982,9 @@ adjust_coding_eol_type (coding, eol_seen)
eol_type = CODING_ID_EOL_TYPE (coding->id);
if (eol_seen & EOL_SEEN_LF)
coding->id = CODING_SYSTEM_ID (AREF (eol_type, 0));
- else if (eol_type & EOL_SEEN_CRLF)
+ else if (eol_seen & EOL_SEEN_CRLF)
coding->id = CODING_SYSTEM_ID (AREF (eol_type, 1));
- else if (eol_type & EOL_SEEN_CR)
+ else if (eol_seen & EOL_SEEN_CR)
coding->id = CODING_SYSTEM_ID (AREF (eol_type, 2));
}