X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ficonv_encode_marc8.c;h=aed43c26cdf17a3834892a49918c202705844342;hb=bb84694ae5b1951689fe049bef536e5a73deb208;hp=ac18e7945024b6c0819250831cd53796203432f9;hpb=473824797f568578dc17d7242551cb2f7ccef46c;p=yaz-moved-to-github.git diff --git a/src/iconv_encode_marc8.c b/src/iconv_encode_marc8.c index ac18e79..aed43c2 100644 --- a/src/iconv_encode_marc8.c +++ b/src/iconv_encode_marc8.c @@ -322,7 +322,7 @@ static size_t yaz_write_marc8_2(yaz_iconv_t cd, struct encoder_data *w, yaz_iconv_set_errno(cd, YAZ_ICONV_E2BIG); return (size_t) (-1); } - *(*outbuf)++ = y; + *(*outbuf)++ = (char) y; (*outbytesleft)--; } else