* objc-lang.c (selectors_info): Prevent string overrun.
2011-02-27 Michael Snyder <msnyder@vmware.com>
+ * objc-lang.c (selectors_info): Prevent string overrun.
+
* tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
error in strncpy.
strcpy(myregexp, ".*]");
else
{
- strcpy(myregexp, regexp);
+ strncpy(myregexp, regexp, sizeof (myregexp) - 1);
if (myregexp[strlen(myregexp) - 1] == '$') /* end of selector */
myregexp[strlen(myregexp) - 1] = ']'; /* end of method name */
else