From 2d468e62deec9f794fc74bdf6d82ee5aec9cf22d Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Tue, 16 Mar 2010 09:57:41 +0000 Subject: [PATCH] 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 --- src/apps/bootman/LegacyBootDrive.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/bootman/LegacyBootDrive.cpp b/src/apps/bootman/LegacyBootDrive.cpp index 8ad1eed951..0d8af69416 100644 --- a/src/apps/bootman/LegacyBootDrive.cpp +++ b/src/apps/bootman/LegacyBootDrive.cpp @@ -528,7 +528,7 @@ LegacyBootDrive::_ConvertToBIOSText(const char* text, BString& biosText) buffer[biosTextLength] = '\0'; biosText.UnlockBuffer(biosTextLength); - return biosTextLength <= kMaxBootMenuItemLength; + return biosTextLength < kMaxBootMenuItemLength; }