Use term Windows rather than win32
[yaz-moved-to-github.git] / src / iconv_encode_marc8.c
index 8561672..aed43c2 100644 (file)
@@ -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