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

This commit is contained in:
antirez 2017-11-29 17:11:46 +01:00
parent eeac1d35d9
commit 8449227f55

View File

@ -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';