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

Commit6d0efd3

Browse files
committed
Surely this temp buffer needn't be static.
1 parentcbb7acf commit6d0efd3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎src/bin/scripts/common.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
88
* Portions Copyright (c) 1994, Regents of the University of California
99
*
10-
* $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.21 2006/09/2218:50:41 petere Exp $
10+
* $PostgreSQL: pgsql/src/bin/scripts/common.c,v 1.22 2006/09/2219:51:14 tgl Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -206,21 +206,23 @@ executeCommand(PGconn *conn, const char *query,
206206
bool
207207
yesno_prompt(constchar*question)
208208
{
209-
staticcharprompt[128];
209+
charprompt[256];
210210

211211
for (;;)
212212
{
213213
char*resp;
214214

215215
/* translator: This is a question followed by the translated options for "yes" and "no". */
216-
snprintf(prompt,sizeof(prompt),_("%s (%s/%s) "),_(question),_(PG_YESLETTER),_(PG_NOLETTER));
216+
snprintf(prompt,sizeof(prompt),_("%s (%s/%s) "),
217+
_(question),_(PG_YESLETTER),_(PG_NOLETTER));
217218
resp=simple_prompt(prompt,1, true);
218219

219220
if (strcmp(resp,_(PG_YESLETTER))==0)
220221
return true;
221222
elseif (strcmp(resp,_(PG_NOLETTER))==0)
222223
return false;
223224

224-
printf(_("Please answer \"%s\" or \"%s\".\n"),_(PG_YESLETTER),_(PG_NOLETTER));
225+
printf(_("Please answer \"%s\" or \"%s\".\n"),
226+
_(PG_YESLETTER),_(PG_NOLETTER));
225227
}
226228
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp