/* -*-c-*-
*
- * $Id: lbuf.c,v 1.2 1999/05/17 20:36:08 mdw Exp $
+ * $Id: lbuf.c,v 1.3 1999/05/22 13:38:50 mdw Exp $
*
* Block-to-line buffering
*
/*----- Revision history --------------------------------------------------*
*
* $Log: lbuf.c,v $
+ * Revision 1.3 1999/05/22 13:38:50 mdw
+ * Fix bug which discarded initial portions of incomplete lines.
+ *
* Revision 1.2 1999/05/17 20:36:08 mdw
* Make the magical constants for the buffer flags uppercase.
*
* reason this routine exists.
*/
- if (b->len == 0 || b->len == sizeof(b->buf)) {
+ if (b->len != 0 && b->len != sizeof(b->buf)) {
*p = b->buf + b->len;
return (sizeof(b->buf) - b->len);
} else {