Forgot to update the condition after not increasing the length variable

in r35872. 
Thanks Axel for pointing that out.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35877 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Pfeiffer 2010-03-16 09:57:41 +00:00
parent ce5750a743
commit 2d468e62de

View File

@ -528,7 +528,7 @@ LegacyBootDrive::_ConvertToBIOSText(const char* text, BString& biosText)
buffer[biosTextLength] = '\0';
biosText.UnlockBuffer(biosTextLength);
return biosTextLength <= kMaxBootMenuItemLength;
return biosTextLength < kMaxBootMenuItemLength;
}