diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-10-22 19:40:26 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-10-22 19:40:26 -0400 |
commit | 2c66f9924c1162bfba27c77004ccf42fb6ea188d (patch) | |
tree | 920c20776ef6d13d7a5d3a836202d897abcaf428 /src/bin/psql/copy.c | |
parent | 09a89cb5fc29b47c26d151e82293fd3bef592b7b (diff) | |
download | postgresql-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/psql/copy.c')
-rw-r--r-- | src/bin/psql/copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/psql/copy.c b/src/bin/psql/copy.c index 6db063ca953..a0c19a8de48 100644 --- a/src/bin/psql/copy.c +++ b/src/bin/psql/copy.c @@ -79,7 +79,7 @@ xstrcat(char **var, const char *more) { char *newvar; - pg_asprintf(&newvar, "%s%s", *var, more); + newvar = psprintf("%s%s", *var, more); free(*var); *var = newvar; } |