Avoid use of sprintf in gdb/utils.c:make_hex_string
authorJoel Brobecker <brobecker@adacore.com>
Sat, 13 Dec 2014 15:19:03 +0000 (10:19 -0500)
committerJoel Brobecker <brobecker@adacore.com>
Sat, 13 Dec 2014 15:28:58 +0000 (10:28 -0500)
commit3c46a02f5083c4a9c07b563d44b8b6ded6d85bb1
treea5c976ea3a4efa18926724e72213cbb8124a7d18
parent8e8347b895af2f492df694c621e70b101d8eb146
Avoid use of sprintf in gdb/utils.c:make_hex_string

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.
gdb/ChangeLog
gdb/utils.c