aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2005-09-22 15:51:51 +0000
committerBruce Momjian <bruce@momjian.us>2005-09-22 15:51:51 +0000
commitd7a06c2ac8c65199f20c1b756196802e73f33d6d (patch)
tree41b6817897c38e75a29796d28b343deb591711aa /src
parenta3b9c6988da00a34cdb4820421127e01db25bb92 (diff)
downloadpostgresql-d7a06c2ac8c65199f20c1b756196802e73f33d6d.tar.gz
postgresql-d7a06c2ac8c65199f20c1b756196802e73f33d6d.zip
Fix psql \x by removing puts().
Greg Sabino Mullane
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/print.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index 9a1db45d5c3..b2c060765ce 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2005, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.72 2005/07/18 20:57:53 momjian Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.73 2005/09/22 15:51:51 momjian Exp $
*/
#include "postgres_fe.h"
#include "common.h"
@@ -570,7 +570,7 @@ print_aligned_vertical(const char *title, const char *const *headers,
if (cells[0] == NULL)
{
- puts(_("(No rows)\n"));
+ fprintf(fout, _("(No rows)\n"));
return;
}
@@ -704,7 +704,7 @@ print_aligned_vertical(const char *title, const char *const *headers,
if (opt_align[i % col_count] == 'r' && opt_numeric_locale)
format_numeric_locale(my_cell);
if (opt_border < 2)
- puts(my_cell);
+ fprintf(fout, "%s\n", my_cell);
else
fprintf(fout, "%-s%*s |\n", my_cell, dwidth - cell_w[i], "");
free(my_cell);