From 29dc5ac0342f90295d0e25d3953fe8d1005a2a68 Mon Sep 17 00:00:00 2001 From: victor Date: Tue, 4 Jan 2000 13:04:00 +0000 Subject: [PATCH] A little problem existed when the Parser tried to read a String because a \0 was inserted sometimes (no others) making imposible to add a new string to the one read and then turning the full string into a char* (understable? :-) --- eo/src/eoParser.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/eo/src/eoParser.h b/eo/src/eoParser.h index 7a55151e..d3501635 100644 --- a/eo/src/eoParser.h +++ b/eo/src/eoParser.h @@ -430,7 +430,8 @@ public: const char *c = paramValue.c_str(); string tmpStr = c+1;// skip the " if (tmpStr[tmpStr.length()-1] == '\"') { // one word only - tmpStr[tmpStr.length()-1] = '\0'; + //tmpStr[tmpStr.length()-1] = '\0'; + tmpStr.erase( &tmpStr[tmpStr.length()-1] ); return tmpStr; } @@ -439,7 +440,8 @@ public: _is >> paramValue; // test last character of paramValue for " if (paramValue[paramValue.length()-1] == '\"') { - paramValue[paramValue.length()-1] = '\0'; + paramValue.erase( ¶mValue[paramValue.length()-1] ); + //paramValue[paramValue.length()-1] = '\0'; stop = true; } tmpStr = tmpStr + " " + paramValue ;