projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Avoid stringop-truncation errors
[deliverable/binutils-gdb.git]
/
gdb
/
ada-tasks.c
diff --git
a/gdb/ada-tasks.c
b/gdb/ada-tasks.c
index 0a81c3c6922ee5479a54fa6abecd1bd3a8979566..589d5e84e0a0f60905c94cf5825b5e1f16358e9c 100644
(file)
--- a/
gdb/ada-tasks.c
+++ b/
gdb/ada-tasks.c
@@
-679,7
+679,8
@@
read_atcb (CORE_ADDR task_id, struct ada_task_info *task_info)
task_name = p + 2;
/* Copy the task name. */
- strncpy (task_info->name, task_name, sizeof (task_info->name));
+ strncpy (task_info->name, task_name,
+ sizeof (task_info->name) - 1);
task_info->name[sizeof (task_info->name) - 1] = 0;
}
else
This page took
0.023812 seconds
and
4
git commands to generate.