From 788e8e7c221825916e6ab11f0079d4c5ede8a057 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 25 Jul 1999 15:03:25 +0000 Subject: Update. 1999-07-25 Ulrich Drepper * iconvdata/euc-kr.c (euckr_from_ucs4): Set cp[0] to '\0' in case of an error. Patch by Changwoo Ryu . --- iconvdata/euc-kr.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'iconvdata/euc-kr.c') diff --git a/iconvdata/euc-kr.c b/iconvdata/euc-kr.c index 4f511705a4..f74d7748f9 100644 --- a/iconvdata/euc-kr.c +++ b/iconvdata/euc-kr.c @@ -33,6 +33,8 @@ euckr_from_ucs4 (uint32_t ch, unsigned char *cp) cp[0] |= 0x80; cp[1] |= 0x80; } + else + cp[0] = '\0'; } /* XXX Think about 0x5c ; '\'. */ else -- cgit v1.2.3