From c95843cb4f950442636559c64898a6f39db16301 Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Tue, 25 Nov 2003 09:30:17 +0000 Subject: 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 --- psprint/source/printer/jobdata.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'psprint') 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; } -- cgit v1.2.3