Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 9a8fcee

Browse files
committed
Patch for tcl library crash, from Jan Wieck.
1 parent 9f133d2 commit 9a8fcee

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/30 05:00:56 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.18 1997/10/30 17: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)