summaryrefslogtreecommitdiffstats
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)
downloadppe42-binutils-776fb68dfc676b995a7dc115102fe33afab9a514.tar.gz
ppe42-binutils-776fb68dfc676b995a7dc115102fe33afab9a514.zip
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 e03245f7af..fa2cb22d1e 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. */
OpenPOWER on IntegriCloud