changeset 392:8090a1bc1b5b

Add a space in the command line
author Andre Heinecke <andre.heinecke@intevation.de>
date Tue, 15 Apr 2014 20:26:42 +0200
parents cbd0c1c20b30
children ae2ef965a41b
files cinst/nssstore_win.c
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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 */

http://wald.intevation.org/projects/trustbridge/