Commit: 5c1e958d90fc809abb1cad64d3facff82f65c9ae
Author: Sergey Sharybin
Date:   Mon Aug 25 18:50:46 2014 +0600
Branches: master
https://developer.blender.org/rB5c1e958d90fc809abb1cad64d3facff82f65c9ae

Fix T41524: Won't open blend file with "space" symbol in the name

===================================================================

M       source/creator/creator_launch_win.c

===================================================================

diff --git a/source/creator/creator_launch_win.c 
b/source/creator/creator_launch_win.c
index e998343..2d5baa4 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,

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to