Commit fa48065d authored by antirez's avatar antirez
Browse files

PSYNC2: Fix off by one buffer size in luaCreateFunction().

parent 7eefca16
......@@ -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';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment