test-long-names.c: Fix build with -Wformat-security.

2018-11-26  Matthias Klose  <doko@ubuntu.com>

        * jit.dg/test-long-names.c: Fix build with -Wformat-security.

From-SVN: r266454
This commit is contained in:
Matthias Klose 2018-11-26 11:50:31 +00:00 committed by Matthias Klose
parent f4d3e3cca5
commit 14c5a314c8
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2018-11-26 Matthias Klose <doko@ubuntu.com>
* jit.dg/test-long-names.c: Fix build with -Wformat-security.
2018-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* lib/target-supports.exp (check_compile): Handle D.

View File

@ -24,7 +24,7 @@ populate_name (const char *prefix, char *buffer)
int i;
/* Begin with the given prefix: */
sprintf (buffer, prefix);
sprintf (buffer, "%s", prefix);
/* Populate the rest of the buffer with 0123456789 repeatedly: */
for (i = strlen (prefix); i < NAME_LENGTH - 1; i++)