[haiku-commits] r38075 - haiku/trunk/headers/os/support

  • From: anevilyak@xxxxxxxxx
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Fri, 13 Aug 2010 01:32:23 +0200 (CEST)

Author: anevilyak
Date: 2010-08-13 01:32:23 +0200 (Fri, 13 Aug 2010)
New Revision: 38075
Changeset: http://dev.haiku-os.org/changeset/38075
Ticket: http://dev.haiku-os.org/ticket/6439

Modified:
   haiku/trunk/headers/os/support/String.h
Log:
Fix build error in IMAP client due to incorrect inequality check in one of 
BString's inlines. Fixes #6439.



Modified: haiku/trunk/headers/os/support/String.h
===================================================================
--- haiku/trunk/headers/os/support/String.h     2010-08-12 23:26:48 UTC (rev 
38074)
+++ haiku/trunk/headers/os/support/String.h     2010-08-12 23:32:23 UTC (rev 
38075)
@@ -421,7 +421,7 @@
 inline char
 BString::ByteAt(int32 index) const
 {
-       if (!fPrivateData || index < 0 || index > Length())
+       if (!fPrivateData || index < 0 || index >= Length())
                return 0;
        return fPrivateData[index];
 }


Other related posts: