Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
fa48065d
Commit
fa48065d
authored
Nov 29, 2017
by
antirez
Browse files
PSYNC2: Fix off by one buffer size in luaCreateFunction().
parent
7eefca16
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/scripting.c
View file @
fa48065d
...
...
@@ -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
[
4
2
];
char
fname
[
4
3
];
if
(
funcname
==
NULL
)
{
fname
[
0
]
=
'f'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment