From 323dc8764f745fe82e42ab224465f55801a49286 Mon Sep 17 00:00:00 2001 From: weidai Date: Thu, 20 Mar 2003 21:09:10 +0000 Subject: small fixes git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@44 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- datatest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'datatest.cpp') diff --git a/datatest.cpp b/datatest.cpp index 5d84c01..50b26fe 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -281,7 +281,7 @@ void TestDigestOrMAC(TestData &v, bool testDigest) bool GetField(std::istream &is, std::string &name, std::string &value) { - name.clear(); + name.resize(0); // GCC workaround: 2.95.3 doesn't have clear() is >> name; if (name.empty()) return false; @@ -295,7 +295,7 @@ bool GetField(std::istream &is, std::string &name, std::string &value) // VC60 workaround: getline bug char buffer[128]; - value.clear(); + value.resize(0); // GCC workaround: 2.95.3 doesn't have clear() bool continueLine; do -- cgit v1.2.1