Skip to content
Snippets Groups Projects
Commit c028c2a7 authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Put back old code.

parent f3406489
No related branches found
No related tags found
No related merge requests found
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* *
* Copyright 2000-2002 by PostgreSQL Global Development Group * 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 "postgres_fe.h"
#include "command.h" #include "command.h"
...@@ -1513,7 +1513,7 @@ editFile(const char *fname) ...@@ -1513,7 +1513,7 @@ editFile(const char *fname)
sys = malloc(strlen(editorName) + strlen(fname) + 32 + 1); sys = malloc(strlen(editorName) + strlen(fname) + 32 + 1);
if (!sys) if (!sys)
return false; return false;
snprintf(sys, 32, "exec %s %s", editorName, fname); sprintf(sys, "exec %s %s", editorName, fname);
result = system(sys); result = system(sys);
if (result == -1) if (result == -1)
psql_error("could not start editor %s\n", editorName); psql_error("could not start editor %s\n", editorName);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment