Commit 9e0602ac authored by Mathieu L Bouchard's avatar Mathieu L Bouchard
Browse files

fix buffer overflow

parent f657bb0b
......@@ -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)+10];
char catch_s[strlen(s)+11];
sprintf(catch_s, "catch { %s }", s);
#endif
......
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