diff --git a/uppsrc/Core/XML.cpp b/uppsrc/Core/XML.cpp index 33d4f1d8e..013e56894 100644 --- a/uppsrc/Core/XML.cpp +++ b/uppsrc/Core/XML.cpp @@ -402,7 +402,7 @@ void XmlParser::Next() int w = tagtext.Find('\"', q); if(w < 0) return; - q = CharsetByName(tagtext.Mid(q, w)); + q = CharsetByName(tagtext.Mid(q, w - q)); if(q) scharset = q; return; diff --git a/uppsrc/ide/main.cpp b/uppsrc/ide/main.cpp index 00a330d29..20a1b21a5 100644 --- a/uppsrc/ide/main.cpp +++ b/uppsrc/ide/main.cpp @@ -402,7 +402,7 @@ void AppMain___() if(FileExists(crash_file)) { if(LibClangEnabled && PromptYesNo("TheIDE has crashed the last time it was run. As the possible " - "cause is libclang incompatibility, we are suggesting to disable Assist features for now.")) + "cause is libclang incompatibility, we Assist features are disabled for now.")) LibClangEnabled = false; DeleteFile(crash_file); }