diff options
author | Michael Snyder <msnyder@vmware.com> | 2011-02-28 00:20:49 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2011-02-28 00:20:49 +0000 |
commit | 086dbf661acc2fbca8dee48e21c9e5e289d7e2f5 (patch) | |
tree | aaf98c214dc8d5455a5c9d2bfda622180c5562f8 /gdb/tui | |
parent | 51ab20a7b82d0f271df5d25fa9ff8b3047423584 (diff) | |
download | gdb-086dbf661acc2fbca8dee48e21c9e5e289d7e2f5.zip gdb-086dbf661acc2fbca8dee48e21c9e5e289d7e2f5.tar.gz gdb-086dbf661acc2fbca8dee48e21c9e5e289d7e2f5.tar.bz2 |
2011-02-27 Michael Snyder <msnyder@vmware.com>
* tui/tui-stack.c (tui_get_function_from_frame): Fix off by one
error in strncpy.
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-stack.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index d7b9716..f618d7c 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -227,7 +227,7 @@ tui_get_function_from_frame (struct frame_info *fi) 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, '>'); |