projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix possible deadlock in backtrace (2nd attempt) YAZ-856
[yaz-moved-to-github.git]
/
src
/
iconv_encode_danmarc.c
diff --git
a/src/iconv_encode_danmarc.c
b/src/iconv_encode_danmarc.c
index
08700a4
..
200e2f5
100644
(file)
--- a/
src/iconv_encode_danmarc.c
+++ b/
src/iconv_encode_danmarc.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2013 Index Data
+ * Copyright (C) Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-34,7
+34,7
@@
static size_t write_danmarc(yaz_iconv_t cd, yaz_iconv_encoder_t en,
}
*outp++ = '@';
(*outbytesleft)--;
}
*outp++ = '@';
(*outbytesleft)--;
- *outp++ = x;
+ *outp++ = (unsigned char) x;
(*outbytesleft)--;
}
else if (x <= 255)
(*outbytesleft)--;
}
else if (x <= 255)
@@
-44,7
+44,7
@@
static size_t write_danmarc(yaz_iconv_t cd, yaz_iconv_encoder_t en,
yaz_iconv_set_errno(cd, YAZ_ICONV_E2BIG);
return (size_t)(-1);
}
yaz_iconv_set_errno(cd, YAZ_ICONV_E2BIG);
return (size_t)(-1);
}
- *outp++ = x;
+ *outp++ = (unsigned char) x;
(*outbytesleft)--;
}
else
(*outbytesleft)--;
}
else