summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2017-11-29 17:11:46 +0100
committerantirez <antirez@gmail.com>2017-11-29 17:11:46 +0100
commitfa48065d007bb217bca9e6642fdb2849c9285cea (patch)
treede599c76a83a1cb591c3bc5798dbb1463523f654
parent7eefca162ab9e8a637ed56f7ebd459db250d89bd (diff)
downloadredis-rdb-script-aux.tar.gz
PSYNC2: Fix off by one buffer size in luaCreateFunction().rdb-script-aux
-rw-r--r--src/scripting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripting.c b/src/scripting.c
index 1ef91a4de..848629e28 100644
--- a/src/scripting.c
+++ b/src/scripting.c
@@ -1159,7 +1159,7 @@ int redis_math_randomseed (lua_State *L) {
* client context. */
int luaCreateFunction(client *c, lua_State *lua, char *funcname, robj *body) {
sds funcdef = sdsempty();
- char fname[42];
+ char fname[43];
if (funcname == NULL) {
fname[0] = 'f';