From a4ae0ca1db883a8c7bdef85ad3598444c7dd8dec Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Tue, 27 Nov 2007 20:13:12 +0000 Subject: * 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. --- gdb/printcmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/printcmd.c') 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]); -- cgit v1.1