diff options
author | Bruce Momjian <bruce@momjian.us> | 2005-03-11 17:20:35 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2005-03-11 17:20:35 +0000 |
commit | 3bc6bdf322ea625c23b15caa97daba6f43cfcc7f (patch) | |
tree | 15dc309bd1cf3e35f0282e687da02548f68ad323 /src/bin/psql/command.c | |
parent | 6521cd9ae104bb4552d2a43e1f79152014c4d156 (diff) | |
download | postgresql-3bc6bdf322ea625c23b15caa97daba6f43cfcc7f.tar.gz postgresql-3bc6bdf322ea625c23b15caa97daba6f43cfcc7f.zip |
Define snprintf() to call pg_snprintf() so our own snprintf-like
implementation doesn't export out via libpq and get used by a user
application.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index fb918bdc058..01ff7fb3957 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2005, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.140 2005/02/22 04:40:51 momjian Exp $ + * $PostgreSQL: pgsql/src/bin/psql/command.c,v 1.141 2005/03/11 17:20:34 momjian Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -1175,13 +1175,13 @@ do_edit(const char *filename_arg, PQExpBuffer query_buf) * supplied path unless we use only backslashes, so we do that. */ #endif - snprintf(fnametmp, sizeof(fnametmp), "%s%spsql.edit.%d", tmpdir, #ifndef WIN32 - "/", + snprintf(fnametmp, sizeof(fnametmp), "%s%spsql.edit.%d", tmpdir, + "/", (int)getpid()); #else - "", /* trailing separator already present */ + snprintf(fnametmp, sizeof(fnametmp), "%s%spsql.edit.%d", tmpdir, + "" /* trailing separator already present */, (int)getpid()); #endif - (int)getpid()); fname = (const char *) fnametmp; |