1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/pkg/lua/patches/0003-Make-size-of-LoadF-buffer-configurable.patch
danpetry ed4411602c pkg/lua: Provide better integration with RIOT
- Remove file related functions from loader.
 * All packages must be builtin.
- Remove os.tmpname.
- Interface with TLSF.
- Don't abort() when out of memory.
2018-07-02 15:13:10 +02:00

26 lines
706 B
Diff

From bd9e76ed9c9044521537d66fd017a21e98aa53c3 Mon Sep 17 00:00:00 2001
From: Juan Carrano <j.carrano@fu-berlin.de>
Date: Mon, 7 May 2018 13:29:15 +0200
Subject: [PATCH 3/8] Make size of LoadF buffer configurable.
---
lauxlib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lauxlib.c b/lauxlib.c
index 018a4347..8bd2b5af 100644
--- a/lauxlib.c
+++ b/lauxlib.c
@@ -635,7 +635,7 @@ LUALIB_API void luaL_unref (lua_State *L, int t, int ref) {
typedef struct LoadF {
int n; /* number of pre-read characters */
FILE *f; /* file being read */
- char buff[BUFSIZ]; /* area for reading file */
+ char buff[LUAL_BUFFERSIZE]; /* area for reading file */
} LoadF;
--
2.17.1