aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/iso-2022-kr.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/iso-2022-kr.c')
-rw-r--r--iconvdata/iso-2022-kr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconvdata/iso-2022-kr.c b/iconvdata/iso-2022-kr.c
index 8c1d88b12c..2961490a78 100644
--- a/iconvdata/iso-2022-kr.c
+++ b/iconvdata/iso-2022-kr.c
@@ -133,9 +133,9 @@ enum
switching is done using the SI and SO bytes. But we have to \
recognize `Esc $ ) C' since this is a kind of flag for this \
encoding. We simply ignore it. */ \
- if (inptr + 1 > inend \
+ if ((NEED_LENGTH_TEST && inptr + 1 > inend) \
|| (inptr[1] == '$' \
- && (inptr + 2 > inend \
+ && ((NEED_LENGTH_TEST && inptr + 2 > inend) \
|| (inptr[2] == ')' && inptr + 3 > inend)))) \
\
{ \