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

Commit9a8fcee

Browse files
committed
Patch for tcl library crash, from Jan Wieck.
1 parent9f133d2 commit9a8fcee

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/interfaces/libpgtcl/pgtclCmds.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.17 1997/10/3005:00:56 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.18 1997/10/3017:29:57 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -1331,8 +1331,8 @@ Pg_select(ClientData cData, Tcl_Interp * interp, int argc, char **argv)
13311331

13321332
for (column=0;column<ncols;column++)
13331333
{
1334-
strcpy(buffer,PQgetvalue(result,tupno,column));
1335-
Tcl_SetVar2(interp,argv[3],info[column].cname,buffer,0);
1334+
Tcl_SetVar2(interp,argv[3],info[column].cname,
1335+
PQgetvalue(result,tupno,column),0);
13361336
}
13371337

13381338
Tcl_SetVar2(interp,argv[3],".command","update",0);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp