From c1b9030aaa484cebf8df7e2bb7559d93a9e0700d Mon Sep 17 00:00:00 2001 From: Ulf Wohlers Date: Wed, 21 Aug 2002 18:24:50 +0000 Subject: [PATCH] Fixed small bug in isvalid. Not all illegal chars were recognized. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@200 --- src/dos/dos_files.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dos/dos_files.cpp b/src/dos/dos_files.cpp index e0299d0e..f1484048 100644 --- a/src/dos/dos_files.cpp +++ b/src/dos/dos_files.cpp @@ -504,7 +504,7 @@ static bool FCB_MakeName (DOS_FCB* fcb, char* outname, Bit8u* outdrive){ static bool isvalid(const char* in){ const char ill[]=ILLEGAL; - return (*in>0x1F) && (strchr(ill,*in)==0); + return (Bit8u(*in)>0x1F) && (strchr(ill,*in)==0); } static void vullen (char* veld,char* pveld){