summaryrefslogtreecommitdiffstats
path: root/Utilities/cmtar/filesystem.c
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 19:58:07 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2005-12-28 19:58:07 (GMT)
commit18d31fd97c3305b54a6d1d56b6ef8600089ef6da (patch)
treefad65ce7d2ba37095405c27df79a9c7a5883f448 /Utilities/cmtar/filesystem.c
parentd715d52a11fbcbc3310412ae7c7ec1e71e5bcbed (diff)
downloadCMake-18d31fd97c3305b54a6d1d56b6ef8600089ef6da.zip
CMake-18d31fd97c3305b54a6d1d56b6ef8600089ef6da.tar.gz
CMake-18d31fd97c3305b54a6d1d56b6ef8600089ef6da.tar.bz2
COMP: Several borland fixes
Diffstat (limited to 'Utilities/cmtar/filesystem.c')
-rw-r--r--Utilities/cmtar/filesystem.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Utilities/cmtar/filesystem.c b/Utilities/cmtar/filesystem.c
index 3418d1e..1ddd5a5 100644
--- a/Utilities/cmtar/filesystem.c
+++ b/Utilities/cmtar/filesystem.c
@@ -3,7 +3,6 @@
// First microsoft compilers
-#ifdef _MSC_VER
#include <windows.h>
#include <io.h>
#include <ctype.h>
@@ -61,7 +60,7 @@ kwDirEntry * kwReadDir(kwDirectory * dir)
return NULL;
}
entry = (kwDirEntry*)malloc(sizeof(kwDirEntry));
- strncpy(entry->d_name,dir->Entry.name,MAXPATHLEN-1);
+ strncpy(entry->d_name,dir->Entry.name,TAR_MAXPATHLEN-1);
if(_findnext(dir->SrchHandle, &dir->Entry) == -1)
{
dir->EOD=1;
@@ -79,4 +78,3 @@ int kwCloseDir(kwDirectory * dir)
if(r==-1) return 0;
return 1;
}
-#endif