aboutsummaryrefslogtreecommitdiff
path: root/src/bin/psql/stringutils.c
diff options
context:
space:
mode:
authorNeil Conway <neilc@samurai.com>2004-01-25 03:07:22 +0000
committerNeil Conway <neilc@samurai.com>2004-01-25 03:07:22 +0000
commite10bb0518a03281f2cb22b2fa41200a56de80d63 (patch)
tree988c3f8dc70975b49d2a97f49a4010d59488f0d9 /src/bin/psql/stringutils.c
parentafe7b7b60ee3047c4665eb27e9252f343e0eff74 (diff)
downloadpostgresql-e10bb0518a03281f2cb22b2fa41200a56de80d63.tar.gz
postgresql-e10bb0518a03281f2cb22b2fa41200a56de80d63.zip
More fallout from the recent psql patch: rename xmalloc and friends to
pg_malloc, to avoid linker failures on same platforms.
Diffstat (limited to 'src/bin/psql/stringutils.c')
-rw-r--r--src/bin/psql/stringutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/stringutils.c b/src/bin/psql/stringutils.c
index eda7837d806..7b9e0bf130b 100644
--- a/src/bin/psql/stringutils.c
+++ b/src/bin/psql/stringutils.c
@@ -3,7 +3,7 @@
*
* Copyright (c) 2000-2003, PostgreSQL Global Development Group
*
- * $PostgreSQL: pgsql/src/bin/psql/stringutils.c,v 1.37 2004/01/24 19:38:49 neilc Exp $
+ * $PostgreSQL: pgsql/src/bin/psql/stringutils.c,v 1.38 2004/01/25 03:07:22 neilc Exp $
*/
#include "postgres_fe.h"
@@ -77,7 +77,7 @@ strtokx(const char *s,
* tokens. 2X the space is a gross overestimate, but it's
* unlikely that this code will be used on huge strings anyway.
*/
- storage = xmalloc(2 * strlen(s) + 1);
+ storage = pg_malloc(2 * strlen(s) + 1);
strcpy(storage, s);
string = storage;
}