View Single Post
Old 12-23-2005, 02:15 AM  
dudex
Junior Member
 
Join Date: Jan 2004
Posts: 12
Default

Quote:
Originally Posted by DR. GiGa BYTe
due my lack of programming knowledge it would be nice if you can take account of this "feature" in further versions

thanx
DR.GB
replace in ProjectZS\Header\imdb.h:

Code:
char* removeDangerousChars(char *ptr)
{
  char *i = ptr;
  while ( *i ) {
    if ( *i == '/' ) { *i = '.'; }
    if ( *i == '\\' ) { *i = '-'; }
    if ( *i == ':' ) { *i = '.'; }
    ++i;
  }
  return ptr;
}
with
Code:
char* removeDangerousChars(char *ptr)
{
  char *i = ptr;
  while ( *i ) {
    if ( *i == '/' ) { *i = '-'; }
    if ( *i == '\\' ) { *i = '-'; }
    if ( *i == ':' ) { *i = '-'; }
    ++i;
  }
  return ptr;
}
hf

regards, dudex
dudex is offline   Reply With Quote