From: Bruce Momjian Date: Tue, 13 Aug 2002 21:04:36 +0000 (+0000) Subject: Put back old code. X-Git-Tag: REL7_3~939 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c028c2a703318e9fbefa6526fbed170dc3c126c2;p=postgresql Put back old code. --- diff --git a/src/bin/psql/command.c b/src/bin/psql/command.c index e483863bbb..c677c4e8bb 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.76 2002/08/13 20:40:44 momjian Exp $ + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.77 2002/08/13 21:04:36 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; - snprintf(sys, 32, "exec %s %s", editorName, fname); + sprintf(sys, "exec %s %s", editorName, fname); result = system(sys); if (result == -1) psql_error("could not start editor %s\n", editorName);