diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2003-11-25 09:30:17 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2003-11-25 09:30:17 +0000 |
commit | c95843cb4f950442636559c64898a6f39db16301 (patch) | |
tree | c7869611972aae4e66a92f8ce4acf94dd74b85a2 /psprint | |
parent | 4a34a3b73e24da0a1cdaf4caf8b7ea928d56dcd8 (diff) |
INTEGRATION: CWS valgrind01 (1.2.88); FILE MERGED
2003/10/30 17:43:00 hr 1.2.88.1: #i20184#: JobData::getStreamBuffer() return buffer tailored to the actual size of the stream instead to the size of the stream buffer
Diffstat (limited to 'psprint')
-rw-r--r-- | psprint/source/printer/jobdata.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/psprint/source/printer/jobdata.cxx b/psprint/source/printer/jobdata.cxx index f5b1379541ad..c1727a36b01c 100644 --- a/psprint/source/printer/jobdata.cxx +++ b/psprint/source/printer/jobdata.cxx @@ -2,9 +2,9 @@ * * $RCSfile: jobdata.cxx,v $ * - * $Revision: 1.2 $ + * $Revision: 1.3 $ * - * last change: $Author: pl $ $Date: 2002-06-19 10:53:34 $ + * last change: $Author: rt $ $Date: 2003-11-25 10:30:17 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -133,7 +133,7 @@ bool JobData::getStreamBuffer( void*& pData, int& bytes ) aStream.Write( pContextBuffer, nBytes ); // success - pData = rtl_allocateMemory( bytes = aStream.GetSize() ); + pData = rtl_allocateMemory( bytes = aStream.Tell() ); memcpy( pData, aStream.GetData(), bytes ); return true; } |