2009-06-18 16:14 UTC+0600 April White (april@users.sourceforge.net)
* source/rtl/mlcfunc.c
* detect if parameter is a string vs array
* allocate memory for the array before resetting the counter
This commit is contained in:
@@ -17,6 +17,11 @@
|
||||
past entries belonging to author(s): Viktor Szakats.
|
||||
*/
|
||||
|
||||
2009-06-18 16:14 UTC+0600 April White (april@users.sourceforge.net)
|
||||
* source/rtl/mlcfunc.c
|
||||
* detect if parameter is a string vs array
|
||||
* allocate memory for the array before resetting the counter
|
||||
|
||||
2009-06-18 14:21 UTC+0200 Viktor Szakats (harbour.01 syenar.hu)
|
||||
* contrib/hbct/Makefile
|
||||
- contrib/hbct/dattime4.c
|
||||
|
||||
@@ -166,9 +166,9 @@ static PHB_EOL_INFO hb_mlGetEOLs( int iParam, int * piEOLs )
|
||||
char * szEOL;
|
||||
ULONG ulLen, ul;
|
||||
|
||||
szEOL = hb_parc( iParam );
|
||||
if( szEOL )
|
||||
if( HB_ISCHAR( iParam ) )
|
||||
{
|
||||
szEOL = hb_parc( iParam );
|
||||
ulLen = hb_parclen( iParam );
|
||||
if( ulLen )
|
||||
{
|
||||
@@ -189,8 +189,8 @@ static PHB_EOL_INFO hb_mlGetEOLs( int iParam, int * piEOLs )
|
||||
}
|
||||
if( iEOLs )
|
||||
{
|
||||
iEOLs = 0;
|
||||
pEOLs = ( PHB_EOL_INFO ) hb_xgrab( sizeof( HB_EOL_INFO ) * iEOLs );
|
||||
iEOLs = 0;
|
||||
for( ul = 1; ul <= ulSize; ++ul )
|
||||
{
|
||||
ulLen = hb_arrayGetCLen( pArray, ul );
|
||||
|
||||
Reference in New Issue
Block a user