Found problem when copy file to C:\TEST, output result was C:TEST, which placed it in current directory. CMD copy is still buggy.

svn path=/trunk/; revision=5430
This commit is contained in:
James Tabor 2003-08-06 11:33:03 +00:00
parent 0a6485b203
commit e5793b92ec

View file

@ -21,7 +21,9 @@ void _splitpath( const char *path, char *drive, char *dir, char *fname, char *ex
}
tmp_dir = (char *)strrchr(path,'\\');
if( tmp_dir != NULL && tmp_dir != tmp_drive + 1 ) {
// if( tmp_dir != NULL && tmp_dir != tmp_drive + 1 )
if( tmp_dir != NULL )
{
strncpy(dir,tmp_drive+1,tmp_dir - tmp_drive);
*(dir + (tmp_dir - tmp_drive)) = 0;
}