mirror of
https://github.com/fluencelabs/redis
synced 2025-03-17 16:10:50 +00:00
PSYNC2: Fix off by one buffer size in luaCreateFunction().
This commit is contained in:
parent
452ad2e928
commit
045d65c3af
@ -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';
|
||||
|
Loading…
x
Reference in New Issue
Block a user