The use of sprintf is discouraged in GDB. Use xsnprintf instead.
gdb/ChangeLog:
* utils.c (make_hex_string): Replace use of sprintf by use of
xsnprintf.
Tested on x86_64-linux.
+2014-12-13 Joel Brobecker <brobecker@adacore.com>
+
+ * utils.c (make_hex_string): Replace use of sprintf by use of
+ xsnprintf.
+
2014-12-13 Joel Brobecker <brobecker@adacore.com>
* compile/compile-object-load.c (link_callbacks_multiple_definition)
p = result;
for (i = 0; i < length; ++i)
- p += sprintf (p, "%02x", data[i]);
+ p += xsnprintf (p, 2, "%02x", data[i]);
*p = '\0';
return result;
}