From 5bc2eb3babd07844954ad34da1b9c758e888665e Mon Sep 17 00:00:00 2001 From: Michael Pfeiffer Date: Tue, 16 Mar 2010 09:14:42 +0000 Subject: [PATCH] BString:UnlockBuffer expects the length without the null-terminator. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35872 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/bootman/LegacyBootDrive.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/apps/bootman/LegacyBootDrive.cpp b/src/apps/bootman/LegacyBootDrive.cpp index 0d5f4db84a..7fa7c43282 100644 --- a/src/apps/bootman/LegacyBootDrive.cpp +++ b/src/apps/bootman/LegacyBootDrive.cpp @@ -501,7 +501,6 @@ LegacyBootDrive::GetDisplayText(const char* text, BString& displayText) } buffer[bufferLength] = '\0'; - bufferLength ++; displayText.UnlockBuffer(bufferLength); return B_OK; } @@ -528,7 +527,6 @@ LegacyBootDrive::_ConvertToBIOSText(const char* text, BString& biosText) } buffer[biosTextLength] = '\0'; - biosTextLength ++; biosText.UnlockBuffer(biosTextLength); return biosTextLength <= kMaxBootMenuItemLength; }