diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-08-25 16:50:46 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2014-08-25 16:50:46 +0400 |
commit | 5c1e958d90fc809abb1cad64d3facff82f65c9ae (patch) | |
tree | e9a8871d6e40834d0690c616feed26dfc555cbcc /source/creator/creator_launch_win.c | |
parent | b7c13da8cc3ac4eadcb914b6584f14fd7568ea25 (diff) |
Fix T41524: Won't open blend file with "space" symbol in the name
Diffstat (limited to 'source/creator/creator_launch_win.c')
-rw-r--r-- | source/creator/creator_launch_win.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/creator/creator_launch_win.c b/source/creator/creator_launch_win.c index e998343c876..2d5baa42e14 100644 --- a/source/creator/creator_launch_win.c +++ b/source/creator/creator_launch_win.c @@ -46,9 +46,10 @@ int main(int argc, char **argv) strncpy(command, BLENDER_BINARY, len - 1); len -= strlen(BLENDER_BINARY); for (i = 1; i < argc; ++i) { - strncat(command, " ", len - 1); - strncat(command, argv[i], len - 2); + strncat(command, " \"", len - 2); + strncat(command, argv[i], len - 3); len -= strlen(argv[i]) + 1; + strncat(command, "\"", len - 1); } result = CreateProcessA(NULL, command, NULL, NULL, TRUE, |