CID 1643 : Off-byÃ-one rray access.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37956 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -98,7 +98,7 @@ const char*
|
|||||||
BLanguage::GetString(uint32 id) const
|
BLanguage::GetString(uint32 id) const
|
||||||
{
|
{
|
||||||
if (id < B_LANGUAGE_STRINGS_BASE
|
if (id < B_LANGUAGE_STRINGS_BASE
|
||||||
|| id > B_LANGUAGE_STRINGS_BASE + B_NUM_LANGUAGE_STRINGS)
|
|| id >= B_LANGUAGE_STRINGS_BASE + B_NUM_LANGUAGE_STRINGS)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user