aboutsummaryrefslogtreecommitdiff
path: root/src/bin/pg_dump/compress_io.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-10-22 19:40:26 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-10-22 19:40:26 -0400
commit2c66f9924c1162bfba27c77004ccf42fb6ea188d (patch)
tree920c20776ef6d13d7a5d3a836202d897abcaf428 /src/bin/pg_dump/compress_io.c
parent09a89cb5fc29b47c26d151e82293fd3bef592b7b (diff)
downloadpostgresql-2c66f9924c1162bfba27c77004ccf42fb6ea188d.tar.gz
postgresql-2c66f9924c1162bfba27c77004ccf42fb6ea188d.zip
Replace pg_asprintf() with psprintf().
This eliminates an awkward coding pattern that's also unnecessarily inconsistent with backend coding. psprintf() is now the thing to use everywhere.
Diffstat (limited to 'src/bin/pg_dump/compress_io.c')
-rw-r--r--src/bin/pg_dump/compress_io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/pg_dump/compress_io.c b/src/bin/pg_dump/compress_io.c
index d859c8ee1e9..dd62fa013c0 100644
--- a/src/bin/pg_dump/compress_io.c
+++ b/src/bin/pg_dump/compress_io.c
@@ -489,7 +489,7 @@ cfopen_read(const char *path, const char *mode)
{
char *fname;
- pg_asprintf(&fname, "%s.gz", path);
+ fname = psprintf("%s.gz", path);
fp = cfopen(fname, mode, 1);
free(fname);
}
@@ -519,7 +519,7 @@ cfopen_write(const char *path, const char *mode, int compression)
#ifdef HAVE_LIBZ
char *fname;
- pg_asprintf(&fname, "%s.gz", path);
+ fname = psprintf("%s.gz", path);
fp = cfopen(fname, mode, 1);
free(fname);
#else