|
3 | 3 | *
|
4 | 4 | * Copyright 2000-2002 by PostgreSQL Global Development Group
|
5 | 5 | *
|
6 |
| - * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.87 2003/01/07 20:56:06 tgl Exp $ |
| 6 | + * $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.88 2003/01/10 21:57:44 petere Exp $ |
7 | 7 | */
|
8 | 8 | #include"postgres_fe.h"
|
9 | 9 | #include"command.h"
|
@@ -1527,7 +1527,7 @@ editFile(const char *fname)
|
1527 | 1527 | sys=malloc(strlen(editorName)+strlen(fname)+10+1);
|
1528 | 1528 | if (!sys)
|
1529 | 1529 | return false;
|
1530 |
| -sprintf(sys,"exec'%s' '%s'",editorName,fname); |
| 1530 | +sprintf(sys,"exec%s '%s'",editorName,fname); |
1531 | 1531 | result=system(sys);
|
1532 | 1532 | if (result==-1)
|
1533 | 1533 | psql_error("could not start editor %s\n",editorName);
|
|