print_spaces -- fix arg to strcat (broken by 1.165.6.4 change to utils.c).
This commit is contained in:
parent
14092d2b40
commit
776fb68dfc
|
@ -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.
|
||||
|
|
19
gdb/utils.c
19
gdb/utils.c
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue