mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 20:14:06 +08:00
utils.c (make_hex_string): Fix off-by-one error.
gdb/ChangeLog: * utils.c (make_hex_string): Fix off-by-one error.
This commit is contained in:
parent
c1b5a1a6e7
commit
dc4d68869c
@ -1,3 +1,7 @@
|
||||
2014-12-13 Doug Evans <xdje42@gmail.com>
|
||||
|
||||
* utils.c (make_hex_string): Fix off-by-one error.
|
||||
|
||||
2014-12-13 Joel Brobecker <brobecker@adacore.com>
|
||||
|
||||
* ada-lang.h (ada_ensure_varsize_limit): Declare.
|
||||
|
@ -1124,7 +1124,7 @@ make_hex_string (const gdb_byte *data, size_t length)
|
||||
|
||||
p = result;
|
||||
for (i = 0; i < length; ++i)
|
||||
p += xsnprintf (p, 2, "%02x", data[i]);
|
||||
p += xsnprintf (p, 3, "%02x", data[i]);
|
||||
*p = '\0';
|
||||
return result;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user