Index: source/common/unistr_case.cpp |
=================================================================== |
--- source/common/unistr_case.cpp (revision 36734) |
+++ source/common/unistr_case.cpp (working copy) |
@@ -1,7 +1,7 @@ |
/* |
******************************************************************************* |
* |
-* Copyright (C) 1999-2011, International Business Machines |
+* Copyright (C) 1999-2014, International Business Machines |
* Corporation and others. All Rights Reserved. |
* |
******************************************************************************* |
@@ -100,11 +100,11 @@ |
UChar *oldArray; |
int32_t oldLength; |
- if(fFlags&kUsingStackBuffer) { |
+ if(fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) { |
// copy the stack buffer contents because it will be overwritten |
- u_memcpy(oldStackBuffer, fUnion.fStackBuffer, fShortLength); |
oldArray = oldStackBuffer; |
- oldLength = fShortLength; |
+ oldLength = getShortLength(); |
+ u_memcpy(oldStackBuffer, fUnion.fStackFields.fBuffer, oldLength); |
} else { |
oldArray = getArrayStart(); |
oldLength = length(); |