From a9038d00b42d886bc9fec2582e57a433be58cb40 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Thu, 25 Feb 2010 01:50:29 +0000 Subject: [PATCH] The withLength variable wasn't initialized properly. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@35613 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/support/String.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kits/support/String.cpp b/src/kits/support/String.cpp index 8fe546d28e..1f2ee6bd5f 100644 --- a/src/kits/support/String.cpp +++ b/src/kits/support/String.cpp @@ -1697,7 +1697,7 @@ BString::ReplaceCharsSet(const char* setOfChars, const char* with) BString setString(setOfChars); BString result; - int32 withLength = withLength; + int32 withLength = strlen(with); int32 charCount = CountChars(); for (int32 i = 0; i < charCount; i++) { int32 charLength;