Commit 1622ba9c by Indu Bhagat Committed by Martin Sebor

invoke.texi: Correct -Wformat-overflow code sample.

gcc/ChangeLog:

2018-02-14  Indu Bhagat  <indu.bhagat@oracle.com>

	* doc/invoke.texi: Correct -Wformat-overflow code sample.

From-SVN: r257680
parent b7a10085
2018-02-14 Indu Bhagat <indu.bhagat@oracle.com>
* doc/invoke.texi: Correct -Wformat-overflow code sample.
2018-02-14 Martin Sebor <msebor@redhat.com>
PR tree-optimization/83698
......
......@@ -4184,7 +4184,7 @@ warning, though it may not be sufficient to avoid the overflow.
@smallexample
void f (int a, int b)
@{
char buf [12];
char buf [13];
sprintf (buf, "a = %i, b = %i\n", a, b);
@}
@end smallexample
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