1
0
Fork 0

fixed small bug (files were not shown using dir command)

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@395
This commit is contained in:
Ulf Wohlers 2002-10-22 11:25:23 +00:00
parent 5df512bcc0
commit 2f528432fc
2 changed files with 2 additions and 2 deletions

View file

@ -244,7 +244,7 @@ void DOS_DTA::GetSearchParams(Bit8u & attr,char * pattern) {
memcpy(pattern,temp,8);
pattern[8]='.';
memcpy(&pattern[9],&temp[8],3);
// pattern[12]=0;
pattern[12]=0;
}

View file

@ -105,7 +105,7 @@ bool localDrive::FindNext(DOS_DTA & dta) {
struct dirent * dir_ent;
struct stat stat_block;
char full_name[CROSS_LEN];
Bit8u srch_attr;char srch_pattern[DOS_NAMELENGTH];
Bit8u srch_attr;char srch_pattern[DOS_NAMELENGTH_ASCII];
Bit8u find_attr;
if(!srch_opendir) return false;