git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40480 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -305,13 +305,12 @@ static int handle_non_rfc2047_encoding(char **buffer,size_t *bufferLength,size_t
|
|||||||
// just to be sure
|
// just to be sure
|
||||||
int32 destLength = length * 4 + 1;
|
int32 destLength = length * 4 + 1;
|
||||||
int32 destBufferLength = destLength;
|
int32 destBufferLength = destLength;
|
||||||
char *dest = (char *)malloc(destLength);
|
char *dest = (char*)malloc(destLength);
|
||||||
if (dest == NULL)
|
if (dest == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (convert_to_utf8(B_ISO1_CONVERSION,string,&length,dest,&destLength,&state) == B_OK)
|
if (convert_to_utf8(B_ISO1_CONVERSION, string, &length,dest,
|
||||||
{
|
&destLength, &state) == B_OK) {
|
||||||
free(*buffer);
|
|
||||||
*buffer = dest;
|
*buffer = dest;
|
||||||
*bufferLength = destBufferLength;
|
*bufferLength = destBufferLength;
|
||||||
*sourceLength = destLength;
|
*sourceLength = destLength;
|
||||||
|
|||||||
Reference in New Issue
Block a user