diff options
author | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-06-04 12:32:19 +0400 |
---|---|---|
committer | jfouet <jfouet@1f5c12ca-751b-0410-a591-d2e778427230> | 2008-06-04 12:32:19 +0400 |
commit | 8e54557e9f5a25fd22d4e6cc971f79838dd4f647 (patch) | |
tree | 7345f9324ffbb78df58f1db73e9fc302fbf42179 /mert | |
parent | bf34eb891d7f362214414057dde53f3eed1b14ab (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.cpp | 2 |
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); |