Allow \ as well as / for microcentric folks

This commit is contained in:
Marty Kraimer
1998-06-01 19:38:48 +00:00
parent b4f37d7eca
commit 2ff9c8ca94
2 changed files with 3 additions and 0 deletions

View File

@@ -82,6 +82,7 @@ int main(int argc,char **argv)
}
/*remove path so that outFile is created where program is executed*/
plastSlash = strrchr(argv[1],'/');
if(!plastSlash) plastSlash = strrchr(argv[1],'\\');
plastSlash = (plastSlash ? plastSlash+1 : argv[1]);
outFilename = dbCalloc(1,strlen(plastSlash)+1);
strcpy(outFilename,plastSlash);