print_spaces -- fix arg to strcat (broken by 1.165.6.4 change to utils.c).

This commit is contained in:
David Taylor 1999-01-11 18:58:07 +00:00
parent 14092d2b40
commit 776fb68dfc
2 changed files with 15 additions and 8 deletions

View 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.

View 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. */