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

Commit ce2ab41

Browse files
committed
Fix stupid typo (mine I suppose) in CopyGetData. Per report from Dave Cramer.
1 parent 61366a9 commit ce2ab41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/commands/copy.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.209 2003/08/13 18:56:21 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/commands/copy.c,v 1.210 2003/08/28 13:52:34 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -432,7 +432,7 @@ CopyGetData(void *databuf, int datasize)
432432
avail = datasize;
433433
pq_copymsgbytes(copy_msgbuf, databuf, avail);
434434
databuf = (void *) ((char *) databuf + avail);
435-
datasize = -avail;
435+
datasize -= avail;
436436
}
437437
break;
438438
}

0 commit comments

Comments
 (0)