ChangeLog 20000427-20:40 GMT+1
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
20000427-20:40 GMT+1 Ryszard Glab <rglab@imid.med.pl>
|
||||
|
||||
*source/compiler/harbour.c
|
||||
* changed hb_xgrab/hb_xrealloc to use sprintf in case
|
||||
unsuccessfull allocation only
|
||||
|
||||
20000426 23:30 Luiz Rafael Culik <culik@sl.conex.net>
|
||||
!ChangeLog
|
||||
*Renamed ChangeLog to ChangeLog.007 and started a new one
|
||||
|
||||
@@ -339,12 +339,14 @@ int isatty( int handle )
|
||||
void * hb_xgrab( ULONG ulSize ) /* allocates fixed memory, exits on failure */
|
||||
{
|
||||
void * pMem = malloc( ulSize );
|
||||
char szSize [10];
|
||||
|
||||
sprintf( szSize, "%li", ulSize );
|
||||
|
||||
if( ! pMem )
|
||||
{
|
||||
char szSize[ 32 ];
|
||||
|
||||
sprintf( szSize, "%li", ulSize );
|
||||
hb_compGenError( hb_comp_szErrors, 'F', HB_COMP_ERR_MEMALLOC, szSize, NULL );
|
||||
}
|
||||
|
||||
return pMem;
|
||||
}
|
||||
@@ -352,13 +354,14 @@ void * hb_xgrab( ULONG ulSize ) /* allocates fixed memory, exits on fail
|
||||
void * hb_xrealloc( void * pMem, ULONG ulSize ) /* reallocates memory */
|
||||
{
|
||||
void * pResult = realloc( pMem, ulSize );
|
||||
char szSize [10];
|
||||
|
||||
sprintf( szSize, "%li", ulSize );
|
||||
|
||||
if( ! pResult )
|
||||
hb_compGenError( hb_comp_szErrors, 'F', HB_COMP_ERR_MEMREALLOC, szSize, NULL );
|
||||
{
|
||||
char szSize[ 32 ];
|
||||
|
||||
sprintf( szSize, "%li", ulSize );
|
||||
hb_compGenError( hb_comp_szErrors, 'F', HB_COMP_ERR_MEMREALLOC, szSize, NULL );
|
||||
}
|
||||
|
||||
return pResult;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user