* tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
error in strncpy.
2011-02-27 Michael Snyder <msnyder@vmware.com>
+ * tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
+ error in strncpy.
+
* symtab.c (rbreak_command): Move variable 'file_name' to
outer scope.
them because the status line is too short to display them. */
if (*p == '<')
p++;
- strncpy (name, p, sizeof (name));
+ strncpy (name, p, sizeof (name) - 1);
p = strchr (name, '(');
if (!p)
p = strchr (name, '>');