Improve "set debug separate-debug-file"
[deliverable/binutils-gdb.git] / gdb / cli-out.c
index 9ffd6f01577548041739653032ee511d202e867d..7e3ee3e54c1a6bf6cce7c2f4fd783f142b8bcc71 100644 (file)
@@ -94,14 +94,12 @@ void
 cli_ui_out::do_field_int (int fldno, int width, ui_align alignment,
                          const char *fldname, int value)
 {
-  char buffer[20];     /* FIXME: how many chars long a %d can become? */
-
   if (m_suppress_output)
     return;
 
-  xsnprintf (buffer, sizeof (buffer), "%d", value);
+  std::string str = string_printf ("%d", value);
 
-  do_field_string (fldno, width, alignment, fldname, buffer);
+  do_field_string (fldno, width, alignment, fldname, str.c_str ());
 }
 
 /* used to omit a field */
This page took 0.024672 seconds and 4 git commands to generate.