diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-08-13 20:40:44 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-08-13 20:40:44 +0000 |
commit | 46bb23ac016714065711cf2a780e080c7310d66e (patch) | |
tree | 24c508c5c37af724da039332f60dbf31039993a5 /src/bin/psql/command.c | |
parent | f8b4a2e0f0a0dd7d1cefd53d8048bfb58f33bd37 (diff) | |
download | postgresql-46bb23ac016714065711cf2a780e080c7310d66e.tar.gz postgresql-46bb23ac016714065711cf2a780e080c7310d66e.zip |
Change NAMEDATALEN to 64, INDEX_MAX_KEYS/MAX_FUNC_ARGS to 32, per discussion on hackers.
Diffstat (limited to 'src/bin/psql/command.c')
-rw-r--r-- | src/bin/psql/command.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index 9be47a90c91..e483863bbb0 100644 --- a/src/bin/psql/command.c +++ b/src/bin/psql/command.c @@ -3,7 +3,7 @@ * * Copyright 2000-2002 by PostgreSQL Global Development Group * - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.75 2002/08/10 03:56:23 tgl Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.76 2002/08/13 20:40:44 momjian Exp $ */ #include "postgres_fe.h" #include "command.h" @@ -1513,7 +1513,7 @@ editFile(const char *fname) sys = malloc(strlen(editorName) + strlen(fname) + 32 + 1); if (!sys) return false; - sprintf(sys, "exec %s %s", editorName, fname); + snprintf(sys, 32, "exec %s %s", editorName, fname); result = system(sys); if (result == -1) psql_error("could not start editor %s\n", editorName); |