From: Indu Bhagat Date: Thu, 15 Feb 2018 00:47:22 +0000 (+0000) Subject: invoke.texi: Correct -Wformat-overflow code sample. X-Git-Tag: basepoints/gcc-9~1198 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1622ba9cefbc2f3e21e42ed336700dd788f11c5c;p=thirdparty%2Fgcc.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 6b0920779798..29996a9abe07 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 f0b11a013545..bcffc8c10986 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