From 7d97272e4851b088ab164aacb085dac7e7a93dc6 Mon Sep 17 00:00:00 2001 From: Horacio Dario Roldan Kasimatis Date: Sun, 25 Mar 2001 02:08:33 +0000 Subject: [PATCH] 2001-03-24 23:07 GMT-3 Horacio Roldan * harbour/source/rdd/dbf1.c * fixed bug handling drive letter in opening memo file --- harbour/ChangeLog | 4 ++++ harbour/source/rdd/dbf1.c | 12 +++--------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 284fdda053..8afb36db86 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2001-03-24 23:07 GMT-3 Horacio Roldan + * harbour/source/rdd/dbf1.c + * fixed bug handling drive letter in opening memo file + 2001-03-24 02:20 UTC-0800 Ron Pinkas * source/compiler/simplex.c * Minor fix for VC++ diff --git a/harbour/source/rdd/dbf1.c b/harbour/source/rdd/dbf1.c index 9285e5ed0f..3e5b382ec6 100644 --- a/harbour/source/rdd/dbf1.c +++ b/harbour/source/rdd/dbf1.c @@ -1555,10 +1555,7 @@ ERRCODE hb_dbfCreate( DBFAREAP pArea, LPDBOPENINFO pCreateInfo ) { pArea->szMemoFileName = ( char * ) hb_xgrab( _POSIX_PATH_MAX + 1 ); pFileName = hb_fsFNameSplit( ( char * ) pCreateInfo->abName ); - if( pFileName->szDrive ) - strcpy( pArea->szMemoFileName, pFileName->szDrive ); - else - pArea->szMemoFileName[ 0 ] = 0; + pArea->szMemoFileName[ 0 ] = 0; if( pFileName->szPath ) strcat( pArea->szMemoFileName, pFileName->szPath ); strcat( pArea->szMemoFileName, pFileName->szName ); @@ -1714,10 +1711,7 @@ ERRCODE hb_dbfOpen( DBFAREAP pArea, LPDBOPENINFO pOpenInfo ) pFileExt = hb_itemPutC( NULL, "" ); SELF_INFO( ( AREAP ) pArea, DBI_MEMOEXT, pFileExt ); szFileName = ( char * ) hb_xgrab( _POSIX_PATH_MAX + 1 ); - if( pFileName->szDrive ) - strcpy( szFileName, pFileName->szDrive ); - else - szFileName[ 0 ] = 0; + szFileName[ 0 ] = 0; if( pFileName->szPath ) strcat( szFileName, pFileName->szPath ); strcat( szFileName, pFileName->szName ); @@ -2523,4 +2517,4 @@ HB_FUNC( DBF_GETFUNCTABLE ) hb_retni( hb_rddInherit( pTable, &dbfTable, &dbfSuper, 0 ) ); else hb_retni( FAILURE ); -} +} \ No newline at end of file