2016-05-04 15:50 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/hbsocket.c
! fixed very bad typo which caused buffer overflow on 32bit
platforms using poll() instead of select() in hb_socketSelect()
This commit is contained in:
@@ -3044,7 +3044,7 @@ int hb_socketSelect( PHB_ITEM pArrayRD, HB_BOOL fSetRD,
|
||||
}
|
||||
|
||||
if( ncnt > 0 )
|
||||
pfds = ( struct pollfd * ) hb_xgrab( ncnt * sizeof( struct pollfd * ) );
|
||||
pfds = ( struct pollfd * ) hb_xgrab( ncnt * sizeof( struct pollfd ) );
|
||||
|
||||
for( i = 0; i < 3; i++ )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user