Allow \ as well as / for microcentric folks
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user