mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +02:00
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:
@@ -13,7 +13,7 @@ struct
|
|||||||
{
|
{
|
||||||
PARSE_STAGE curElement;
|
PARSE_STAGE curElement;
|
||||||
|
|
||||||
CHAR8 szCharData[MAX_CHAR_DATA_LENGTH + 1];
|
CHAR8 szCharData[MAX_CHAR_1000_DATA_LENGTH + 1];
|
||||||
DISEASE curItem;
|
DISEASE curItem;
|
||||||
DISEASE * curArray;
|
DISEASE * curArray;
|
||||||
UINT32 maxArraySize;
|
UINT32 maxArraySize;
|
||||||
@@ -114,9 +114,9 @@ diseaseCharacterDataHandle( void *userData, const XML_Char *str, int len )
|
|||||||
parseData * pData = (parseData *)userData;
|
parseData * pData = (parseData *)userData;
|
||||||
|
|
||||||
if ( (pData->currentDepth <= pData->maxReadDepth) &&
|
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 ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user