Bugfix: Doubled the string buffer size for all the Disease text fields for Disease.xml file, because in Russian language long text fields are cut (in Russian language one character needs 2 bytes)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8078 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2016-03-02 16:05:02 +00:00
parent ee7b935456
commit b5fd88b50f
+3 -3
View File
@@ -13,7 +13,7 @@ struct
{
PARSE_STAGE curElement;
CHAR8 szCharData[MAX_CHAR_DATA_LENGTH + 1];
CHAR8 szCharData[MAX_CHAR_1000_DATA_LENGTH + 1];
DISEASE curItem;
DISEASE * curArray;
UINT32 maxArraySize;
@@ -114,9 +114,9 @@ diseaseCharacterDataHandle( void *userData, const XML_Char *str, int len )
parseData * pData = (parseData *)userData;
if ( (pData->currentDepth <= pData->maxReadDepth) &&
(strlen( pData->szCharData ) < MAX_CHAR_DATA_LENGTH)
(strlen( pData->szCharData ) < MAX_CHAR_1000_DATA_LENGTH)
){
strncat( pData->szCharData, str, __min( (unsigned int)len, MAX_CHAR_DATA_LENGTH - strlen( pData->szCharData ) ) );
strncat( pData->szCharData, str, __min( (unsigned int)len, MAX_CHAR_1000_DATA_LENGTH - strlen( pData->szCharData ) ) );
}
}