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
Rishabh Gupta
purr-data
Commits
9e0602ac
Commit
9e0602ac
authored
Aug 14, 2014
by
Mathieu L Bouchard
Browse files
fix buffer overflow
parent
f657bb0b
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd/src/t_tkcmd.c
View file @
9e0602ac
...
...
@@ -558,10 +558,10 @@ void tcl_mess(char *s)
int
result
;
#ifdef DEBUG_TCL
char
catch_s
[
strlen
(
s
)];
char
catch_s
[
strlen
(
s
)
+
1
];
sprintf
(
catch_s
,
"%s"
,
s
);
#else
char
catch_s
[
strlen
(
s
)
+
1
0
];
char
catch_s
[
strlen
(
s
)
+
1
1
];
sprintf
(
catch_s
,
"catch { %s }"
,
s
);
#endif
...
...
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