Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-08-25 16:50:46 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-08-25 16:50:46 +0400
commit5c1e958d90fc809abb1cad64d3facff82f65c9ae (patch)
treee9a8871d6e40834d0690c616feed26dfc555cbcc /source/creator
parentb7c13da8cc3ac4eadcb914b6584f14fd7568ea25 (diff)
Fix T41524: Won't open blend file with "space" symbol in the name
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator_launch_win.c5
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,