diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2007-11-27 20:13:12 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2007-11-27 20:13:12 +0000 |
commit | a4ae0ca1db883a8c7bdef85ad3598444c7dd8dec (patch) | |
tree | 3244002a4c0326ff27decceeb225030561e5c640 /gdb/printcmd.c | |
parent | c0993dbe928fa5aee10ebe8d1aaaf07b24d88db9 (diff) | |
download | gdb-a4ae0ca1db883a8c7bdef85ad3598444c7dd8dec.zip gdb-a4ae0ca1db883a8c7bdef85ad3598444c7dd8dec.tar.gz gdb-a4ae0ca1db883a8c7bdef85ad3598444c7dd8dec.tar.bz2 |
* dfp.c (decimal_from_string): Remove superfluous newline from
error string.
(decimal_to_string): Likewise.
* printcmd.c (printf_command): Change string buffer to use
MAX_DECIMAL_STRING constant.
* value.c (value_from_decfloat): Likewise.
Diffstat (limited to 'gdb/printcmd.c')
-rw-r--r-- | gdb/printcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/printcmd.c b/gdb/printcmd.c index 2095727..e531175 100644 --- a/gdb/printcmd.c +++ b/gdb/printcmd.c @@ -2128,7 +2128,7 @@ printf_command (char *arg, int from_tty) case decfloat_arg: { char *eos; - char decstr[128]; + char decstr[MAX_DECIMAL_STRING]; unsigned int dfp_len = TYPE_LENGTH (value_type (val_args[i])); unsigned char *dfp_value_ptr = (unsigned char *) value_contents_all (val_args[i]) + value_offset (val_args[i]); |