Update of /cvsroot/mahogany/M/src/modules/crypt
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29323/src/modules/crypt
Modified Files:
PGPEngine.cpp
Log Message:
take into account that writing to PGP pipe doesn't always write all the data
Index: PGPEngine.cpp
===================================================================
RCS file: /cvsroot/mahogany/M/src/modules/crypt/PGPEngine.cpp,v
retrieving revision 1.34
retrieving revision 1.35
diff -b -u -2 -r1.34 -r1.35
--- PGPEngine.cpp 17 Jul 2004 21:40:11 -0000 1.34
+++ PGPEngine.cpp 21 Jul 2004 10:39:55 -0000 1.35
@@ -537,6 +537,7 @@
{
const size_t CHUNK_SIZE = 4096;
- size_t lenChunk = lenIn > CHUNK_SIZE ? CHUNK_SIZE : lenIn;
- in->Write(ptrIn, lenChunk);
+ in->Write(ptrIn, lenIn > CHUNK_SIZE ? CHUNK_SIZE : lenIn);
+
+ const size_t lenChunk = in->LastWrite();
lenIn -= lenChunk;
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Mahogany-cvsupdates mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates