aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/iso-2022-kr.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-12-29 04:40:57 +0000
committerUlrich Drepper <drepper@redhat.com>1999-12-29 04:40:57 +0000
commit6d110ca1858feba75e4b5528d7941770c59d6b5d (patch)
treed3462da74d1a4e3e3d858f99d40bae0cdf36ae8b /iconvdata/iso-2022-kr.c
parent056e03583b52e0d3129832ee4913fca47440f05d (diff)
downloadglibc-6d110ca1858feba75e4b5528d7941770c59d6b5d.zip
glibc-6d110ca1858feba75e4b5528d7941770c59d6b5d.tar.gz
glibc-6d110ca1858feba75e4b5528d7941770c59d6b5d.tar.bz2
Update.
* iconvdata/iso-2022-kr.c: Optimize recognition of escape sequences a bit.
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 8c1d88b..2961490 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)))) \
\
{ \