Author: laplace Date: 2010-03-16 10:14:42 +0100 (Tue, 16 Mar 2010) New Revision: 35872 Changeset: http://dev.haiku-os.org/changeset/35872/haiku Modified: haiku/trunk/src/apps/bootman/LegacyBootDrive.cpp Log: BString:UnlockBuffer expects the length without the null-terminator. Modified: haiku/trunk/src/apps/bootman/LegacyBootDrive.cpp =================================================================== --- haiku/trunk/src/apps/bootman/LegacyBootDrive.cpp 2010-03-15 23:51:45 UTC (rev 35871) +++ haiku/trunk/src/apps/bootman/LegacyBootDrive.cpp 2010-03-16 09:14:42 UTC (rev 35872) @@ -501,7 +501,6 @@ } buffer[bufferLength] = '\0'; - bufferLength ++; displayText.UnlockBuffer(bufferLength); return B_OK; } @@ -528,7 +527,6 @@ } buffer[biosTextLength] = '\0'; - biosTextLength ++; biosText.UnlockBuffer(biosTextLength); return biosTextLength <= kMaxBootMenuItemLength; }