Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mert
diff options
context:
space:
mode:
authorjfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230>2008-06-04 12:32:19 +0400
committerjfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230>2008-06-04 12:32:19 +0400
commit8e54557e9f5a25fd22d4e6cc971f79838dd4f647 (patch)
tree7345f9324ffbb78df58f1db73e9fc302fbf42179 /mert
parentbf34eb891d7f362214414057dde53f3eed1b14ab (diff)
fix crash in getNextPound
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@1814 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'mert')
-rw-r--r--mert/Util.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mert/Util.cpp b/mert/Util.cpp
index aff734e1b..4f113ebe0 100644
--- a/mert/Util.cpp
+++ b/mert/Util.cpp
@@ -29,7 +29,7 @@ int getNextPound(std::string &theString, std::string &substring, const std::stri
{
if ((pos = theString.find(delimiter)) != std::string::npos){
substring.assign(theString, 0, pos);
- theString.assign(theString, pos + delimiter.size(), theString.size());
+ theString.erase(0,pos + delimiter.size());
}
else{
substring.assign(theString);