From 323e7fe56710901702a25563bc65595a311d8f8b Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Thu, 12 Aug 2010 23:32:23 +0000 Subject: [PATCH] Fix build error in IMAP client due to incorrect inequality check in one of BString's inlines. Fixes #6439. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38075 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/support/String.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headers/os/support/String.h b/headers/os/support/String.h index 6a790f3019..614a5da075 100644 --- a/headers/os/support/String.h +++ b/headers/os/support/String.h @@ -421,7 +421,7 @@ BString::operator[](int32 index) const inline char BString::ByteAt(int32 index) const { - if (!fPrivateData || index < 0 || index > Length()) + if (!fPrivateData || index < 0 || index >= Length()) return 0; return fPrivateData[index]; }