Commit 6aab06c7 by Martin Sebor Committed by Martin Sebor

re PR c/81117 (Improve buffer overflow checking in strncpy)

gcc/ChangeLog:

	PR c/81117
	* doc/extend.texi (attribute nonstring): Remove spurious argument.

From-SVN: r254659
parent 42c544b0
2017-11-11 Martin Sebor <msebor@redhat.com>
PR c/81117
* doc/extend.texi (attribute nonstring): Remove spurious argument.
PR bootstrap/82948
* prefic.c (translate_name): Replace strncpy with memcpy to
avoid -Wstringop-truncation.
......@@ -5969,7 +5969,7 @@ The @code{deprecated} attribute can also be used for functions and
types (@pxref{Common Function Attributes},
@pxref{Common Type Attributes}).
@item nonstring (@var{nonstring})
@item nonstring
@cindex @code{nonstring} variable attribute
The @code{nonstring} variable attribute specifies that an object or member
declaration with type array of @code{char} or pointer to @code{char} is
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment