From 776fb68dfc676b995a7dc115102fe33afab9a514 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 11 Jan 1999 18:58:07 +0000 Subject: [PATCH] print_spaces -- fix arg to strcat (broken by 1.165.6.4 change to utils.c). --- gdb/ChangeLog | 4 ++++ gdb/utils.c | 19 +++++++++++-------- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d32c60b3161..18fada5b2d4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Mon Jan 11 13:55:51 1999 David Taylor + + * utils (print_spaces): fix arg to strcat; fix formatting. + Fri Jan 8 11:57:24 1999 Stan Shebs * exec.c (exec_ops): Don't initialize statically. diff --git a/gdb/utils.c b/gdb/utils.c index e03245f7af9..fa2cb22d1e0 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. */ -- 2.30.2