diff --git a/common/hotkeys_basic.cpp b/common/hotkeys_basic.cpp index e4fae9c012..aca3aa9faa 100644 --- a/common/hotkeys_basic.cpp +++ b/common/hotkeys_basic.cpp @@ -624,7 +624,7 @@ int ReadHotkeyConfigFile( const wxString& aFilename, struct EDA_HOTKEY_CONFIG* a // read data std::vector buffer( size ); cfgfile.Read( buffer.data(), size ); - wxString data( buffer.data(), wxConvUTF8 ); + wxString data( buffer.data(), wxConvUTF8, size ); // Is this the wxConfig format? If so, remove "Keys=" and parse the newlines. if( data.StartsWith( wxT("Keys="), &data ) )