* of the GNU Lesser General Public License.
*/
-#include "ucw/lib.h"
-#include "ucw/mempool.h"
+#include <ucw/lib.h>
+#include <ucw/mempool.h>
#include <alloca.h>
#include <stdio.h>
}
else if ((uns)cnt >= mp_avail(mp) - ofs)
{
- ret = mp_grow(mp, cnt + 1) + ofs;
+ ret = mp_grow(mp, ofs + cnt + 1) + ofs;
va_copy(args2, args);
int cnt2 = vsnprintf(ret, cnt + 1, fmt, args2);
va_end(args2);