# HG changeset patch # User Andre Heinecke # Date 1397586402 -7200 # Node ID 8090a1bc1b5b52e8dcacca6c6ccb3bb1b66d4cc5 # Parent cbd0c1c20b300439d3bd19506ca8e40f2ff6a721 Add a space in the command line diff -r cbd0c1c20b30 -r 8090a1bc1b5b cinst/nssstore_win.c --- a/cinst/nssstore_win.c Tue Apr 15 20:26:26 2014 +0200 +++ b/cinst/nssstore_win.c Tue Apr 15 20:26:42 2014 +0200 @@ -153,12 +153,15 @@ restrict token -> hChildToken */ - cmd_line_len = wcslen (lpApplicationName) + wcslen(selection_file) + 1; + cmd_line_len = wcslen (lpApplicationName) + wcslen(selection_file) + 2; lpCommandLine = xmalloc (cmd_line_len * sizeof(wchar_t)); wcscpy_s (lpCommandLine, cmd_line_len, lpApplicationName); + wcscpy_s (lpCommandLine, cmd_line_len, L" "); wcscat_s (lpCommandLine, cmd_line_len, selection_file); + DEBUGPRINTF ("Starting %S with command line %S\n", lpApplicationName, lpCommandLine); + success = CreateProcessAsUserW (hToken, lpApplicationName, lpCommandLine, /* Commandline */