Re: pradeeban - r26656 - in abiword/branches/gsoc2009unicode/src: af/util/xp wp/ap/xp

From: Kathiravelu Pradeeban <kk.pradeeban_at_gmail.com>
Date: Mon Jun 01 2009 - 04:48:24 CEST

Thanks Hubert and Dominic for pointing me these.
I will look into these issues, and do necessary changes as suggested.

Thanks.
Pradeeban.

On Mon, Jun 1, 2009 at 2:03 AM, Dominic Lachowicz
<domlachowicz@gmail.com> wrote:
>
>> Modified: abiword/branches/gsoc2009unicode/src/af/util/xp/ut_iconv.cpp
>> ===================================================================
>> --- abiword/branches/gsoc2009unicode/src/af/util/xp/ut_iconv.cpp        2009-05-31 07:25:47 UTC (rev 26655)
>> +++ abiword/branches/gsoc2009unicode/src/af/util/xp/ut_iconv.cpp        2009-05-31 12:51:15 UTC (rev 26656)
>> @@ -406,7 +406,7 @@
>>
>>        /* Due to a GLIBC bug, round outbuf_size up to a multiple of 4 */
>>        /* + 1 for nul in case len == 1 */
>> -       size_t outbuf_size = ((len + 3) & ~3) + 15;
>> +       size_t outbuf_size = (((4*len) + 3) & ~3) + 15;
>>        size_t outbytes_remaining = outbuf_size - 4; /* -4 for null (allow for ucs4 0) */
>>
>>        char* pDest = static_cast<char*>(g_try_malloc(outbuf_size));
>
> Besides what Hub said, I made some changes to ut_iconv.cpp in TRUNK
> that fix whatever issue you were running into. I don't want your
> changes merged to the trunk, so maybe it'd be preferable if you could
> copy ut_iconv.cpp from the trunk to your branch.
>
> Thanks,
> Dom
>

-- 
Pradeeban.
University of Moratuwa.
[06CSE]
http://kkpradeeban.blogspot.com/
Received on Mon Jun 1 04:49:44 2009

This archive was generated by hypermail 2.1.8 : Mon Jun 01 2009 - 04:49:44 CEST