Commit 14c5a314 by Matthias Klose Committed by Matthias Klose

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
parent f4d3e3cc
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> 2018-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* lib/target-supports.exp (check_compile): Handle D. * lib/target-supports.exp (check_compile): Handle D.
......
...@@ -24,7 +24,7 @@ populate_name (const char *prefix, char *buffer) ...@@ -24,7 +24,7 @@ populate_name (const char *prefix, char *buffer)
int i; int i;
/* Begin with the given prefix: */ /* Begin with the given prefix: */
sprintf (buffer, prefix); sprintf (buffer, "%s", prefix);
/* Populate the rest of the buffer with 0123456789 repeatedly: */ /* Populate the rest of the buffer with 0123456789 repeatedly: */
for (i = strlen (prefix); i < NAME_LENGTH - 1; i++) for (i = strlen (prefix); i < NAME_LENGTH - 1; i++)
......
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