convert selected_item_suffix to wide string before checking its length

master
Andrzej Rybczak 16 years ago
parent 895c9177d5
commit ca0a48b14c
  1. 2
      src/settings.cpp

@ -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)

Loading…
Cancel
Save