git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39808 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2010-12-10 19:56:30 +00:00
parent acb73fef47
commit c454897103

View File

@ -193,5 +193,5 @@ ValueLoader::LoadStringValue(BVariant& location, size_t maxSize, BString& _value
static const size_t kMaxStringSize = 255;
return fTeamMemory->ReadMemoryString(location.ToUInt64(),
maxSize > kMaxStringSize ? kMaxStringSize : maxSize, _value);
std::min(maxSize, kMaxStringSize), _value);
}