convert selected_item_suffix to wide string before checking its length

This commit is contained in:
Andrzej Rybczak
2010-01-03 16:28:34 +01:00
parent 895c9177d5
commit ca0a48b14c

View File

@@ -689,7 +689,7 @@ void ReadConfiguration(ncmpcpp_config &conf)
{
conf.selected_item_suffix.Clear();
String2Buffer(v, conf.selected_item_suffix);
conf.selected_item_suffix_length = Window::Length(conf.selected_item_suffix.Str());
conf.selected_item_suffix_length = Window::Length(TO_WSTRING(conf.selected_item_suffix.Str()));
}
}
else if (cl.find("now_playing_prefix") != std::string::npos)