X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ficonv_encode_marc8.c;h=aed43c26cdf17a3834892a49918c202705844342;hp=ac18e7945024b6c0819250831cd53796203432f9;hb=bfe768e3b0cf959ed9982a7b6ff6dc9e906820f4;hpb=28d3e3b08a856a66cb90ebf08787f8fa27a772eb 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