mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-25 22:03:45 -06:00
Core: String fix for sanitizer
git-svn-id: svn://ultimatepp.org/upp/trunk@14629 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
2594b1e983
commit
dfafee9e31
1 changed files with 1 additions and 1 deletions
|
|
@ -304,13 +304,13 @@ int String::GetCharCount() const
|
|||
|
||||
String::String(StringBuffer& b)
|
||||
{
|
||||
Zero();
|
||||
if(b.pbegin == b.buffer) {
|
||||
String0::Set0(b.pbegin, (int)(uintptr_t)(b.pend - b.pbegin));
|
||||
return;
|
||||
}
|
||||
int l = b.GetLength();
|
||||
if(l <= 14) {
|
||||
Zero();
|
||||
memcpy8(chr, b.pbegin, l);
|
||||
SLen() = l;
|
||||
b.Free();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue