Skip to content

Commit c028c2a

Browse files
committed
Put back old code.
1 parent f340648 commit c028c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bin/psql/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000-2002 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.76 2002/08/13 20:40:44 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.77 2002/08/13 21:04:36 momjian Exp $
77
*/
88
#include "postgres_fe.h"
99
#include "command.h"
@@ -1513,7 +1513,7 @@ editFile(const char *fname)
15131513
sys = malloc(strlen(editorName) + strlen(fname) + 32 + 1);
15141514
if (!sys)
15151515
return false;
1516-
snprintf(sys, 32, "exec %s %s", editorName, fname);
1516+
sprintf(sys, "exec %s %s", editorName, fname);
15171517
result = system(sys);
15181518
if (result == -1)
15191519
psql_error("could not start editor %s\n", editorName);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy