Skip to content

Commit 9f6bfbd

Browse files
committed
fix(quotedprintable): Fix assert in AsciiStringToQuotedPrintable during map cache generation
1 parent 358f660 commit 9f6bfbd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GeneralsMD/Code/GameEngine/Source/Common/System/QuotedPrintable.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ static int hexDigitToInt(char c)
5656
AsciiString UnicodeStringToQuotedPrintable(UnicodeString original)
5757
{
5858
static char dest[1024];
59-
const char *src = (const char *)original.str();
59+
const unsigned char *src = reinterpret_cast<const unsigned char *>(original.str());
6060
int i=0;
6161
while ( !(src[0]=='\0' && src[1]=='\0') && i<1021 )
6262
{
@@ -91,7 +91,7 @@ AsciiString UnicodeStringToQuotedPrintable(UnicodeString original)
9191
AsciiString AsciiStringToQuotedPrintable(AsciiString original)
9292
{
9393
static char dest[1024];
94-
const char *src = (const char *)original.str();
94+
const unsigned char *src = reinterpret_cast<const unsigned char *>(original.str());
9595
int i=0;
9696
while ( src[0]!='\0' && i<1021 )
9797
{

0 commit comments

Comments
 (0)