aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlang.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-01-31 12:07:04 +0000
committerNick Clifton <nickc@redhat.com>2017-01-31 12:07:04 +0000
commit1273da0414a2f2a31288749a17fe44cbef615ab5 (patch)
tree03342f1070b64a938c55da6e043c19b20b4b7984 /ld/ldlang.c
parent07fbc63d1e282aa2e8b37cbdc343e0f0171e4ea9 (diff)
downloadgdb-1273da0414a2f2a31288749a17fe44cbef615ab5.zip
gdb-1273da0414a2f2a31288749a17fe44cbef615ab5.tar.gz
gdb-1273da0414a2f2a31288749a17fe44cbef615ab5.tar.bz2
Fix buffer overflows in ld when printing translated strings.
ld * ldmain.c (add_archive_element): Eliminate string buffer. * ldlang.c (lang_print_asneeded): Likewise.
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r--ld/ldlang.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c
index dafc348..1396c5b 100644
--- a/ld/ldlang.c
+++ b/ld/ldlang.c
@@ -2035,14 +2035,11 @@ static void
lang_print_asneeded (void)
{
struct asneeded_minfo *m;
- char buf[100];
if (asneeded_list_head == NULL)
return;
- sprintf (buf, _("\nAs-needed library included "
- "to satisfy reference by file (symbol)\n\n"));
- minfo ("%s", buf);
+ minfo (_("\nAs-needed library included to satisfy reference by file (symbol)\n\n"));
for (m = asneeded_list_head; m != NULL; m = m->next)
{