/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
{
unsigned char *outp = (unsigned char *) *outbuf;
- if (x == '@' || x == '*' || x == 0xa4)
+ if (x == '@' || x == '*')
{
if (*outbytesleft < 2)
{
}
*outp++ = '@';
(*outbytesleft)--;
- *outp++ = x;
+ *outp++ = (unsigned char) x;
(*outbytesleft)--;
}
else if (x <= 255)
yaz_iconv_set_errno(cd, YAZ_ICONV_E2BIG);
return (size_t)(-1);
}
- *outp++ = x;
+ *outp++ = (unsigned char) x;
(*outbytesleft)--;
}
else