Browse files

Handle a path to the compiler wrapper/converter with forward slashes

  • Loading branch information...
1 parent e7799a2 commit e34e1c02a91b53e10103f7d6d365133418ff8e61 @mstorsjo mstorsjo committed Aug 31, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 compilewrap.c
View
2 compilewrap.c
@@ -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 {

0 comments on commit e34e1c0

Please sign in to comment.