#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
+#include <assert.h>
#include "obstack.h"
#ifdef _WIN32
{
char buf[128];
char *buffer = buf;
- size_t size = lengthof(buf);
+ size_t size = sizeof(buf);
va_list ap;
int len;
} else {
break;
}
- buffer = malloc(buffer, size);
+ buffer = malloc(size);
}
obstack_grow(obst, buffer, len);