2011-01-16 15:49 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/hblzf/hblzf.c
! fixed decompress buffer resizing
This commit is contained in:
@@ -16,6 +16,10 @@
|
||||
The license applies to all entries newer than 2009-04-28.
|
||||
*/
|
||||
|
||||
2011-01-16 15:49 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
|
||||
* harbour/contrib/hblzf/hblzf.c
|
||||
! fixed decompress buffer resizing
|
||||
|
||||
2011-01-16 00:40 UTC+0200 Petr Chornyj (myorg63 at mail.ru)
|
||||
* contrib/hbmxml/hbmxml.c
|
||||
+ Added experimental hb_mxmlGetAttrsCount(), hb_mxmlGetAttrs(),
|
||||
|
||||
@@ -190,13 +190,12 @@ HB_FUNC( HB_LZF_DECOMPRESS )
|
||||
|
||||
if( buffer && buffer_size )
|
||||
{
|
||||
HB_SIZE i = 1;
|
||||
unsigned int uiResult;
|
||||
|
||||
do
|
||||
{
|
||||
buffer_size *= i++;
|
||||
buffer = ( char * ) hb_xrealloc( buffer, buffer_size );
|
||||
buffer_size <<= 1;
|
||||
buffer = ( char * ) hb_xrealloc( buffer, buffer_size + 1 );
|
||||
|
||||
uiResult = lzf_decompress( in_data, in_len, buffer, buffer_size );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user