X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ficonv_encode_marc8.c;h=aed43c26cdf17a3834892a49918c202705844342;hb=bb84694ae5b1951689fe049bef536e5a73deb208;hp=85616723819d54ecd2bcb84431d48797187b6094;hpb=abdeca647e108e6d19110c367925ba1014fb86d6;p=yaz-moved-to-github.git diff --git a/src/iconv_encode_marc8.c b/src/iconv_encode_marc8.c index 8561672..aed43c2 100644 --- a/src/iconv_encode_marc8.c +++ b/src/iconv_encode_marc8.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data + * Copyright (C) Index Data * See the file LICENSE for details. */ /** @@ -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