invoke.texi: Correct -Wformat-overflow code sample.
authorIndu Bhagat <indu.bhagat@oracle.com>
Thu, 15 Feb 2018 00:47:22 +0000 (00:47 +0000)
committerMartin Sebor <msebor@gcc.gnu.org>
Thu, 15 Feb 2018 00:47:22 +0000 (17:47 -0700)
gcc/ChangeLog:

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

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

From-SVN: r257680

gcc/ChangeLog
gcc/doc/invoke.texi

index 6b09207797980b8de508f564f9124212ed317478..29996a9abe072e7598bdaa91e8829cc04a3c510a 100644 (file)
@@ -1,3 +1,7 @@
+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
index f0b11a013545aa5a2ce77b6ab4a14252fe2b4b45..bcffc8c10986562440528786913886e66c4db476 100644 (file)
@@ -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