diff options
author | David Taylor <taylor@redhat.com> | 1999-01-11 18:58:07 +0000 |
---|---|---|
committer | David Taylor <taylor@redhat.com> | 1999-01-11 18:58:07 +0000 |
commit | 776fb68dfc676b995a7dc115102fe33afab9a514 (patch) | |
tree | 9ec9cdcabbae5b2fefcff39009e60c408a11ca9c | |
parent | 14092d2b4087b3c675a5db5a978ddb31cd13c0ec (diff) | |
download | gdb-776fb68dfc676b995a7dc115102fe33afab9a514.zip gdb-776fb68dfc676b995a7dc115102fe33afab9a514.tar.gz gdb-776fb68dfc676b995a7dc115102fe33afab9a514.tar.bz2 |
print_spaces -- fix arg to strcat (broken by 1.165.6.4 change to utils.c).
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/utils.c | 19 |
2 files changed, 15 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d32c60b..18fada5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/utils.c b/gdb/utils.c index e03245f..fa2cb22 100644 --- a/gdb/utils.c +++ b/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. */ |