if (STRINGP (start))
{
failure = 0 > a_write (desc, XSTRING (start)->data,
- XSTRING (start)->size, 0, &annotations, &coding);
+ XSTRING (start)->size_byte, 0, &annotations,
+ &coding);
save_errno = errno;
}
else if (XINT (start) != XINT (end))
while (NILP (*annot) || CONSP (*annot))
{
tem = Fcar_safe (Fcar (*annot));
- nextpos = 0;
+ nextpos = bytepos - 1;
if (INTEGERP (tem))
nextpos = CHAR_TO_BYTE (XFASTINT (tem));
tem = Fcdr (Fcar (*annot));
if (STRINGP (tem))
{
- if (0 > e_write (desc, XSTRING (tem)->data, XSTRING (tem)->size,
+ if (0 > e_write (desc, XSTRING (tem)->data, XSTRING (tem)->size_byte,
coding))
return -1;
}