From 776fb68dfc676b995a7dc115102fe33afab9a514 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Mon, 11 Jan 1999 18:58:07 +0000 Subject: print_spaces -- fix arg to strcat (broken by 1.165.6.4 change to utils.c). --- gdb/utils.c | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'gdb/utils.c') 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. */ -- cgit v1.1