]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
print_spaces -- fix arg to strcat (broken by 1.165.6.4 change to utils.c).
authorDavid Taylor <taylor@redhat.com>
Mon, 11 Jan 1999 18:58:07 +0000 (18:58 +0000)
committerDavid Taylor <taylor@redhat.com>
Mon, 11 Jan 1999 18:58:07 +0000 (18:58 +0000)
gdb/ChangeLog
gdb/utils.c

index d32c60b316136e81356c270ea0f306c4e56d5853..18fada5b2d49006333d43289127ad2d2b8fad07b 100644 (file)
@@ -1,3 +1,7 @@
+Mon Jan 11 13:55:51 1999  David Taylor  <taylor@texas.cygnus.com>
+
+       * utils (print_spaces): fix arg to strcat; fix formatting.
+
 Fri Jan  8 11:57:24 1999  Stan Shebs  <shebs@andros.cygnus.com>
 
        * exec.c (exec_ops): Don't initialize statically.
index e03245f7af9f479995d260bf89a7b4b47c35a995..fa2cb22d1e01b6a1a380d9352019e2561c753948 100644 (file)
@@ -982,14 +982,17 @@ print_spaces (n, file)
      register int n;
      register GDB_FILE *file;
 {
-  if (file->ts_streamtype == astring) {
-    gdb_file_adjust_strbuf (n, file);
-    while (n-- > 0) 
-     strcat(file->ts_strbuf, ' ');
-  } else {
-     while (n-- > 0)
-       fputc (' ', file->ts_filestream);
-  }
+  if (file->ts_streamtype == astring)
+    {
+      gdb_file_adjust_strbuf (n, file);
+      while (n-- > 0) 
+       strcat(file->ts_strbuf, " ");
+    }
+  else
+    {
+      while (n-- > 0)
+       fputc (' ', file->ts_filestream);
+    }
 }
 
 /* Print a host address.  */