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

Commit460ee04

Browse files
committed
Fix breakage introduced by evidently-completely-untested snprintf patch.
1 parent6dff9bc commit460ee04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

‎src/interfaces/ecpg/preproc/preproc.y

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.196 2002/09/0206:11:43 momjian Exp $*/
1+
/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.197 2002/09/0214:43:14 tgl Exp $*/
22

33
/* Copyright comment*/
44
%{
@@ -3628,7 +3628,8 @@ connection_target: database_name opt_server opt_port
36283628
/* old style: dbname[@server][:port]*/
36293629
if (strlen($2) >0 && *($2) !='@')
36303630
{
3631-
sprintf(errortext,sizeof(errortext), "Expected '@', found '%s'", $2);
3631+
snprintf(errortext,sizeof(errortext),
3632+
"Expected '@', found '%s'", $2);
36323633
mmerror(PARSE_ERROR, ET_ERROR, errortext);
36333634
}
36343635

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp