Avoid a warning of overflow
This patch avoid a warning of "c-ada-spec.cc:1660:34: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=]" when build GCC. gcc/c-family/ChangeLog: * c-ada-spec.cc: Change array length
This commit is contained in:
parent
e63ac860af
commit
2d810acbd2
1 changed files with 1 additions and 1 deletions
|
@ -1579,7 +1579,7 @@ dump_ada_function_declaration (pretty_printer *buffer, tree func,
|
|||
tree type = TREE_TYPE (func);
|
||||
tree arg = TYPE_ARG_TYPES (type);
|
||||
tree t;
|
||||
char buf[17];
|
||||
char buf[18];
|
||||
int num, num_args = 0, have_args = true, have_ellipsis = false;
|
||||
|
||||
/* Compute number of arguments. */
|
||||
|
|
Loading…
Add table
Reference in a new issue