diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-10 22:36:23 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-10 22:36:23 +0000 |
commit | 8789035e7447c7e9da54629baef7c66b04262467 (patch) | |
tree | 25eb89bb78d91d414141f0ca29bf3f77fe153b9d | |
parent | 85b77f5560b435cc0fe85eea5831b11f30e8f3e9 (diff) | |
download | cryptopp-c50-fixes.tar.gz |
workaround std::string problem in MacOS Xc50-fixes
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/branches/c50-fixes/c5@36 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r-- | filters.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -493,7 +493,8 @@ public: {if (!parameters.GetValue("OutputStringPointer", m_output)) throw InvalidArgument("StringSink: OutputStringPointer not specified");} unsigned int Put2(const byte *begin, unsigned int length, int messageEnd, bool blocking) { - m_output->append((const char_type *)begin, (const char_type *)begin+length); + if (length > 0) + m_output->append((const char_type *)begin, (const char_type *)begin+length); return 0; } |