⛏️ index : haiku.git

author Rene Gollent <anevilyak@gmail.com> 2011-05-14 21:12:07.0 +00:00:00
committer Rene Gollent <anevilyak@gmail.com> 2011-05-14 21:12:07.0 +00:00:00
commit
469cccb22c786971f6d2f65ff1226bebc683cc8a [patch]
tree
c455ec8c916ed7457e2a4b687aeec78152caf640
parent
e21407d07b82a11ecff5cdd27acf2c51fa6030c2
download
469cccb22c786971f6d2f65ff1226bebc683cc8a.tar.gz

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(-)

diff --git a/src/system/boot/loader/menu.cpp b/src/system/boot/loader/menu.cpp
index 4593f92..230f1d1 100644
--- a/src/system/boot/loader/menu.cpp
+++ b/src/system/boot/loader/menu.cpp
@@ -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,