* readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
find string length.
+2020-07-06 Alan Modra <amodra@gmail.com>
+
+ * readelf.c (print_dynamic_symbol): Don't sprintf to buffer to
+ find string length.
+
2020-07-04 Nick Clifton <nickc@redhat.com>
* configure: Regenerate.
int len_avail = 21;
if (! do_wide && version_string != NULL)
{
- char buffer[256];
+ char buffer[16];
- len_avail -= sprintf (buffer, "@%s", version_string);
+ len_avail -= 1 + strlen (version_string);
if (sym_info == symbol_undefined)
len_avail -= sprintf (buffer," (%d)", vna_other);