#include "mowgli.h"
+extern void mowgli_log_bootstrap(void);
+
MOWGLI_BOOTSTRAP_FUNC(mowgli_bootstrap_real)
{
static bool bootstrapped = 0;
#endif
/* initial bootstrap */
+ mowgli_log_bootstrap();
mowgli_node_bootstrap();
mowgli_queue_bootstrap();
mowgli_argstack_bootstrap();
#include "mowgli.h"
-char buf1[65535];
-char buf2[65535];
+char buf1[65536];
+char buf2[65536];
void mowgli_log_cb_default(const char *buf) {
fprintf(stderr, "%s\n", buf);
static mowgli_log_cb_t mowgli_log_cb = mowgli_log_cb_default;
+void mowgli_log_bootstrap() {
+ buf1[65535] = 0;
+ buf2[65535] = 0;
+}
+
/* TODO: remove next time there is a LIB_MAJOR bump */
void mowgli_log_real(const char *file, int line, const char *func,
const char *fmt, ...) {