mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-23 18:32:55 +00:00
set invalid length variable to the output buffer size in QIcuCodec
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
c382b404ce
commit
4e0b42ea5d
1 changed files with 2 additions and 2 deletions
|
@ -977,7 +977,7 @@ QString QIcuCodec::convertToUnicode(const char *data, int length,
|
|||
#if 0
|
||||
error = U_ZERO_ERROR;
|
||||
char errorbytes[10];
|
||||
int8_t invalidlen = 0;
|
||||
int8_t invalidlen = sizeof(errorbytes);
|
||||
ucnv_getInvalidChars(conv, errorbytes, &invalidlen, &error);
|
||||
state->invalidChars = invalidlen;
|
||||
#endif
|
||||
|
@ -1008,7 +1008,7 @@ QByteArray QIcuCodec::convertFromUnicode(const QChar *unicode, int length,
|
|||
#if 0
|
||||
error = U_ZERO_ERROR;
|
||||
char errorbytes[10];
|
||||
int8_t invalidlen = 0;
|
||||
int8_t invalidlen = sizeof(errorbytes);
|
||||
ucnv_getInvalidChars(conv, errorbytes, &invalidlen, &error);
|
||||
state->invalidChars = invalidlen;
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue