Przeglądaj źródła

Fix access to command line arguments

rexim 5 lat temu
rodzic
commit
82d3ae57dd
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      nobuild2.h

+ 1 - 1
nobuild2.h

@@ -292,7 +292,7 @@ void cmd_line_run_sync(Cmd_Line cmd_line)
 #ifndef _WIN32
     pid_wait(cmd_line_run_async(cmd_line));
 #else
-    intptr_t status = _spawnvp(_P_WAIT, cmd_line.line[0], (char * const*) cmd_line.line);
+    intptr_t status = _spawnvp(_P_WAIT, cmd_line.line.elems[0], (char * const*) cmd_line.line.elems);
     if (status < 0) {
         PANIC("could not start child process: %s", strerror(errno));
     }