diff options
Diffstat (limited to 'iconvdata/iso8859-1.c')
-rw-r--r-- | iconvdata/iso8859-1.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/iconvdata/iso8859-1.c b/iconvdata/iso8859-1.c index 94128fe72c..e7c120f138 100644 --- a/iconvdata/iso8859-1.c +++ b/iconvdata/iso8859-1.c @@ -142,7 +142,8 @@ gconv (struct gconv_step *step, struct gconv_step_data *data, while (inwchars >= cnt + sizeof (wchar_t) && outchars < data->outbufsize) { - if (*((wchar_t *) (inbuf + cnt)) <= L'\377') + if (*((wchar_t *) (inbuf + cnt)) >= L'\0' + && *((wchar_t *) (inbuf + cnt)) <= L'\377') outbuf[outchars] = *((wchar_t *) (inbuf + cnt)); else /* Here is where the transliteration would enter the |