aboutsummaryrefslogtreecommitdiff
path: root/iconvdata/iso8859-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconvdata/iso8859-1.c')
-rw-r--r--iconvdata/iso8859-1.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/iconvdata/iso8859-1.c b/iconvdata/iso8859-1.c
index c6465d2bcf..5f98adcfee 100644
--- a/iconvdata/iso8859-1.c
+++ b/iconvdata/iso8859-1.c
@@ -124,7 +124,8 @@ gconv (struct gconv_step *step, struct gconv_step_data *data,
while (cnt < inchars
&& (outwchars + sizeof (wchar_t) <= data->outbufsize))
{
- *((wchar_t *) (outbuf + outwchars)) = inbuf[cnt];
+ *((wchar_t *) (outbuf + outwchars)) =
+ (unsigned char) inbuf[cnt];
++do_write;
outwchars += sizeof (wchar_t);
++cnt;