From c3bad1afc1564f3bfac8434d45d6694811139333 Mon Sep 17 00:00:00 2001 From: weidai Date: Sun, 10 Dec 2006 02:12:23 +0000 Subject: port to GCC 4, reorganize implementations of SetKey git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@248 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- datatest.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'datatest.cpp') diff --git a/datatest.cpp b/datatest.cpp index 32b10fb..4a2d950 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -363,7 +363,10 @@ bool GetField(std::istream &is, std::string &name, std::string &value) while (buffer[0] != 0); is.clear(); is.ignore(); - + + if (!value.empty() && value[value.size()-1] == '\r') + value.resize(value.size()-1); + if (!value.empty() && value[value.size()-1] == '\\') { value.resize(value.size()-1); -- cgit v1.2.1