/* -*-c-*-
*
- * $Id: dstr.c,v 1.12 1999/12/10 23:42:04 mdw Exp $
+ * $Id: dstr.c,v 1.13 1999/12/22 15:39:28 mdw Exp $
*
* Handle dynamically growing strings
*
/*----- Revision history --------------------------------------------------*
*
* $Log: dstr.c,v $
+ * Revision 1.13 1999/12/22 15:39:28 mdw
+ * Fix overflow in dstr_putline.
+ *
* Revision 1.12 1999/12/10 23:42:04 mdw
* Change header file guard names.
*
/* --- Make sure there's some buffer space --- */
if (!left) {
+ d->len = off;
dstr_ensure(d, 1);
left = d->sz - off;
}