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:
Adrien Destugues 2010-08-07 17:31:36 +00:00
parent 2644dc421a
commit c9b2be8bea

View File

@ -98,7 +98,7 @@ const char*
BLanguage::GetString(uint32 id) const
{
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;