Package: tinycdb Version: 0.76 This doesn't look right:
int internal_function
_cdb_make_fullwrite(int fd, const unsigned char *buf, unsigned len)
{
while(len) {
int l = write(fd, buf, len);
if (l < 0 && errno != EINTR)
return -1;
len -= l; <===================
buf += l;
}
return 0;
}
If I'm not mistaken, l can be negative at this point (if EINTR is
encountered).
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

