From: Indu Bhagat Date: Thu, 15 Feb 2018 00:47:22 +0000 (+0000) Subject: invoke.texi: Correct -Wformat-overflow code sample. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1622ba9cefbc2f3e21e42ed336700dd788f11c5c;p=gcc.git invoke.texi: Correct -Wformat-overflow code sample. gcc/ChangeLog: 2018-02-14 Indu Bhagat * doc/invoke.texi: Correct -Wformat-overflow code sample. From-SVN: r257680 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6b092077979..29996a9abe0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2018-02-14 Indu Bhagat + + * doc/invoke.texi: Correct -Wformat-overflow code sample. + 2018-02-14 Martin Sebor PR tree-optimization/83698 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index f0b11a01354..bcffc8c1098 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -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