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:
parent
ce5750a743
commit
2d468e62de
@ -528,7 +528,7 @@ LegacyBootDrive::_ConvertToBIOSText(const char* text, BString& biosText)
|
||||
|
||||
buffer[biosTextLength] = '\0';
|
||||
biosText.UnlockBuffer(biosTextLength);
|
||||
return biosTextLength <= kMaxBootMenuItemLength;
|
||||
return biosTextLength < kMaxBootMenuItemLength;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user