From: David Taylor Date: Mon, 11 Jan 1999 18:58:07 +0000 (+0000) Subject: print_spaces -- fix arg to strcat (broken by 1.165.6.4 change to utils.c). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=776fb68dfc676b995a7dc115102fe33afab9a514;p=binutils-gdb.git print_spaces -- fix arg to strcat (broken by 1.165.6.4 change to utils.c). --- 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. */