diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-02 14:43:14 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-09-02 14:43:14 +0000 |
commit | 460ee04956f84964d8e80fac2dd86af508f87271 (patch) | |
tree | 7e3bad0cc32e7ba0aa77e0671c4fbf4f41364917 /src | |
parent | 6dff9bc97d32f68f517a568cadf91bdca54fb733 (diff) | |
download | postgresql-460ee04956f84964d8e80fac2dd86af508f87271.tar.gz postgresql-460ee04956f84964d8e80fac2dd86af508f87271.zip |
Fix breakage introduced by evidently-completely-untested snprintf patch.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/ecpg/preproc/preproc.y | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/interfaces/ecpg/preproc/preproc.y b/src/interfaces/ecpg/preproc/preproc.y index 7069d5611d7..771f80354ac 100644 --- a/src/interfaces/ecpg/preproc/preproc.y +++ b/src/interfaces/ecpg/preproc/preproc.y @@ -1,4 +1,4 @@ -/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.196 2002/09/02 06:11:43 momjian Exp $ */ +/* $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/Attic/preproc.y,v 1.197 2002/09/02 14:43:14 tgl Exp $ */ /* Copyright comment */ %{ @@ -3628,7 +3628,8 @@ connection_target: database_name opt_server opt_port /* old style: dbname[@server][:port] */ if (strlen($2) > 0 && *($2) != '@') { - sprintf(errortext, sizeof(errortext), "Expected '@', found '%s'", $2); + snprintf(errortext, sizeof(errortext), + "Expected '@', found '%s'", $2); mmerror(PARSE_ERROR, ET_ERROR, errortext); } |