Fix small error in previous commit that resulted in the fix not working as intended.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41501 a95241bf-73f2-0310-859d-f6bbb57e9c96
Diff
src/system/boot/loader/menu.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -844,7 +844,7 @@
MenuItemIterator iterator = menu->ItemIterator();
while (MenuItem* item = iterator.Next()) {
if (item->Type() == MENU_ITEM_SEPARATOR || !item->IsMarked()
|| item->Data() == NULL || (uint32)pos > sizeof(buffer))
|| item->Data() == NULL || (uint32)pos >= bufferSize)
continue;
size_t totalBytes = snprintf(buffer + pos, bufferSize - pos,