* TODO: Decide on fixed size or dynamically allocated buffer
*/
#if 1
-#include <malloc.h>
+#include <stdlib.h>
#else
#define BUFLEN 256
#endif
#endif
- lua_pushlstring(L, buf, ret);
+ lua_pushlstring(L, (const char *)buf, ret);
#ifndef BUFLEN
free(buf);
#endif