Skip to content

Commit

Permalink
Handle a path to the compiler wrapper/converter with forward slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
mstorsjo committed Aug 31, 2012
1 parent e7799a2 commit e34e1c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compilewrap.c
Expand Up @@ -190,6 +190,8 @@ int main(int argc, char* argv[])
cmdline = malloc(strlen(argv[0]) + strlen(temp_file_1) + strlen(temp_file_2) + strlen(CONVERTER) + 20);
strcpy(cmdline, argv[0]);
ptr = strrchr(argv[0], '\\');
if (!ptr)
ptr = strrchr(argv[0], '/');
if (!ptr) {
ptr = cmdline;
} else {
Expand Down

0 comments on commit e34e1c0

Please sign in to comment.