termux-packages/packages/liblua/fix-lua_tmpnametemplate.patch

16 lines
414 B
Diff
Raw Normal View History

2019-06-08 01:53:52 +02:00
--- ./src/loslib.c.orig 2019-06-07 23:19:03.666887235 +0000
+++ ./src/loslib.c 2019-06-07 23:19:47.295164822 +0000
@@ -112,10 +112,10 @@
#include <unistd.h>
-#define LUA_TMPNAMBUFSIZE 32
+#define LUA_TMPNAMBUFSIZE 128
#if !defined(LUA_TMPNAMTEMPLATE)
-#define LUA_TMPNAMTEMPLATE "/tmp/lua_XXXXXX"
+#define LUA_TMPNAMTEMPLATE "@TERMUX_PREFIX@/tmp/lua_XXXXXX"
#endif
2019-06-08 01:53:52 +02:00
#define lua_tmpnam(b,e,s) { \