diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 20:39:59 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 20:39:59 +0000 |
commit | ec56662ba7b4cfaf1335a88854127fac06f376aa (patch) | |
tree | c85dd5aa14780d400b30c133fa3704b044d1bbb2 /datatest.cpp | |
parent | 4feec7c333fd1ec92d1dd8c7f741249e3919ec5e (diff) | |
download | cryptopp-ec56662ba7b4cfaf1335a88854127fac06f376aa.tar.gz |
fix warnings for VC7 and GCC
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@43 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'datatest.cpp')
-rw-r--r-- | datatest.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/datatest.cpp b/datatest.cpp index eac1d7f..5d84c01 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -281,6 +281,7 @@ void TestDigestOrMAC(TestData &v, bool testDigest) bool GetField(std::istream &is, std::string &name, std::string &value) { + name.clear(); is >> name; if (name.empty()) return false; @@ -293,8 +294,8 @@ bool GetField(std::istream &is, std::string &name, std::string &value) is.ignore(1); // VC60 workaround: getline bug - char buffer[4]; - value.resize(0); + char buffer[128]; + value.clear(); bool continueLine; do @@ -421,7 +422,7 @@ void TestDataFile(const std::string &filename, unsigned int &totalTests, unsigne failedTests++; } else - cout << "."; + cout << "." << flush; totalTests++; } |