diff --git a/harbour/ChangeLog b/harbour/ChangeLog index a2d6626a45..ec0c3ea812 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,13 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2005-10-30 18:15 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * xharbour/source/rdd/sdf1.c + + * xharbour/source/rdd/delim1.c + * harbour/source/rdd/dbcmd.c + * Sinchronised version with harbour/include/hbver.h + 2006-05-31 13:45 UTC+0200 Tomaz Zupan (tomaz.zupan at orpo.si) * harbour.spec * Added Mandriva to recognised distros diff --git a/harbour/source/rdd/delim1.c b/harbour/source/rdd/delim1.c index 349ac6f1f4..e1e1db7c84 100644 --- a/harbour/source/rdd/delim1.c +++ b/harbour/source/rdd/delim1.c @@ -902,7 +902,9 @@ static ERRCODE hb_delimInfo( DELIMAREAP pArea, USHORT uiIndex, PHB_ITEM pItem ) case DBI_GETDELIMITER: { - char szDelim[ 2 ] = { pArea->cDelim, '\0' }; + char szDelim[ 2 ]; + szDelim[ 0 ] = pArea->cDelim; + szDelim[ 1 ] = '\0'; hb_itemPutC( pItem, szDelim ); break; } @@ -923,8 +925,10 @@ static ERRCODE hb_delimInfo( DELIMAREAP pArea, USHORT uiIndex, PHB_ITEM pItem ) case DBI_SEPARATOR: { - char szSeparator[ 2 ] = { pArea->cSeparator, '\0' }; + char szSeparator[ 2 ]; char * szNew = hb_itemGetCPtr( pItem ); + szSeparator[ 0 ] = pArea->cSeparator; + szSeparator[ 1 ] = '\0'; if( *szNew ) pArea->cSeparator = *szNew; hb_itemPutC( pItem, szSeparator ); diff --git a/harbour/source/rdd/sdf1.c b/harbour/source/rdd/sdf1.c index 697838a3e3..1b905debf3 100644 --- a/harbour/source/rdd/sdf1.c +++ b/harbour/source/rdd/sdf1.c @@ -920,7 +920,7 @@ static ERRCODE hb_sdfClose( SDFAREAP pArea ) */ static ERRCODE hb_sdfCreate( SDFAREAP pArea, LPDBOPENINFO pCreateInfo ) { - ERRCODE errCode = SUCCESS; + ERRCODE errCode; PHB_FNAME pFileName; PHB_ITEM pError = NULL; BOOL fRetry;