Skip to content

Commit 0f356be

Browse files
committed
large object fix
1 parent 32eef5a commit 0f356be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/interfaces/libpgtcl/pgtclCmds.c

Lines changed: 2 additions & 2 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.26 1998/06/16 05:50:55 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/interfaces/libpgtcl/Attic/pgtclCmds.c,v 1.27 1998/06/16 06:53:27 momjian Exp $
1111
*
1212
*-------------------------------------------------------------------------
1313
*/
@@ -821,7 +821,7 @@ Pg_lo_read(ClientData cData, Tcl_Interp *interp, int argc, char* argv[])
821821
sprintf(interp->result,"%d",nbytes);
822822
return TCL_OK;
823823
}
824-
buf = ckalloc(sizeof(len+1));
824+
buf = ckalloc(len+1);
825825

826826
nbytes = lo_read(conn,fd,buf,len);
827827

0 commit comments

Comments
 (0)