2014-02-06 23:32 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rtl/saverest.c
    ! fixed missing casting in last commit
This commit is contained in:
Przemysław Czerpak
2014-02-06 23:32:39 +01:00
parent 981d96b712
commit db1b307c59
2 changed files with 5 additions and 1 deletions

View File

@@ -10,6 +10,10 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2014-02-06 23:32 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/saverest.c
! fixed missing casting in last commit
2014-02-06 15:57 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/saverest.c
! added protection against passing to small screen

View File

@@ -125,7 +125,7 @@ HB_FUNC( RESTSCREEN )
{
pBuffer = hb_xgrab( nSize );
memcpy( pBuffer, pBufStr, nLen );
memset( pBuffer + nLen, 0, nSize - nLen );
memset( ( char * ) pBuffer + nLen, 0, nSize - nLen );
pBufStr = pBuffer;
}