Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc028c2a

Browse files
committed
Put back old code.
1 parentf340648 commitc028c2a

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/1320:40:44 momjian Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.77 2002/08/1321: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)

[8]ページ先頭

©2009-2025 Movatter.jp