aboutsummaryrefslogtreecommitdiff
path: root/gdb/utils.c
diff options
context:
space:
mode:
authorDavid Taylor <taylor@redhat.com>1999-01-11 18:58:07 +0000
committerDavid Taylor <taylor@redhat.com>1999-01-11 18:58:07 +0000
commit776fb68dfc676b995a7dc115102fe33afab9a514 (patch)
tree9ec9cdcabbae5b2fefcff39009e60c408a11ca9c /gdb/utils.c
parent14092d2b4087b3c675a5db5a978ddb31cd13c0ec (diff)
downloadgdb-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).
Diffstat (limited to 'gdb/utils.c')
-rw-r--r--gdb/utils.c19
1 files changed, 11 insertions, 8 deletions
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. */