From 6cc336142724ea93f63cd1904b99634c55a879d9 Mon Sep 17 00:00:00 2001 From: Maria Dimashova Date: Thu, 9 Jun 2011 17:13:05 +0000 Subject: [PATCH] fixed #916 --- samples/cpp/bagofwords_classification.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/cpp/bagofwords_classification.cpp b/samples/cpp/bagofwords_classification.cpp index 7203ccc5a9..8226dc3c5d 100644 --- a/samples/cpp/bagofwords_classification.cpp +++ b/samples/cpp/bagofwords_classification.cpp @@ -1860,7 +1860,7 @@ string VocData::checkFilenamePathsep( const string filename, bool add_trailing_s pos = filename_new.find("\\"); while (pos != filename_new.npos) { - filename_new.replace(pos,2,"/"); + filename_new.replace(pos,1,"/"); pos = filename_new.find("\\", pos); } if (add_trailing_slash)