Tools/VMAP: Fix a logic error in processArgv of vmapexport

This commit is contained in:
Duarte Duarte
2014-01-26 14:29:51 +00:00
parent d2e782a13b
commit d39b36b50f

View File

@@ -396,7 +396,7 @@ bool processArgv(int argc, char ** argv, const char *versionString)
{
hasInputPathParam = true;
strcpy(input_path, argv[i+1]);
if (input_path[strlen(input_path) - 1] != '\\' || input_path[strlen(input_path) - 1] != '/')
if (input_path[strlen(input_path) - 1] != '\\' && input_path[strlen(input_path) - 1] != '/')
strcat(input_path, "/");
++i;
}