diff options
author | antirez <antirez@gmail.com> | 2017-11-29 17:11:46 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2017-11-29 17:11:46 +0100 |
commit | fa48065d007bb217bca9e6642fdb2849c9285cea (patch) | |
tree | de599c76a83a1cb591c3bc5798dbb1463523f654 | |
parent | 7eefca162ab9e8a637ed56f7ebd459db250d89bd (diff) | |
download | redis-rdb-script-aux.tar.gz |
PSYNC2: Fix off by one buffer size in luaCreateFunction().rdb-script-aux
-rw-r--r-- | src/scripting.c | 2 |
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'; |