(show_user): Avoid fprintf_filtered botch (AGAIN!).
authorJohn Gilmore <gnu@cygnus>
Wed, 17 Mar 1993 20:21:55 +0000 (20:21 +0000)
committerJohn Gilmore <gnu@cygnus>
Wed, 17 Mar 1993 20:21:55 +0000 (20:21 +0000)
gdb/ChangeLog
gdb/command.c

index a206ca0..d161f08 100644 (file)
@@ -18,6 +18,10 @@ Wed Mar 17 09:46:31 1993  Jim Kingdon  (kingdon@cygnus.com)
        * xcoffread.c (xcoff_symfile_read): Only read stringtab and
        debugsec if there are a non-zero number of symbols.
 
+Tue Mar 16 18:08:45 1993  John Gilmore  (gnu@cygnus.com)
+
+       * command.c (show_user):  Avoid fprintf_filtered botch (AGAIN!).
+
 Tue Mar 16 15:18:17 1993  Jim Kingdon  (kingdon@cygnus.com)
 
        * xcoffexec.c (add_vmap): Wrap symbol read in catch_errors.
index 1fce334..abcc1a0 100644 (file)
@@ -1205,10 +1205,13 @@ show_user_1 (c, stream)
   cmdlines = c->user_commands;
   if (!cmdlines)
     return;
-  fprintf_filtered (stream, "User command %s:\n", c->name);
+  fputs_filtered ("User command ", stream);
+  fputs_filtered (c->name, stream);
+  fputs_filtered (":\n", stream);
   while (cmdlines)
     {
-      fprintf_filtered (stream, "%s\n", cmdlines->line); 
+      fputs_filtered (cmdlines->line, stream); 
+      fputs_filtered ("\n", stream); 
       cmdlines = cmdlines->next;
     }
   fputs_filtered ("\n", stream);