mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-09 17:38:00 +00:00
Merge Windows Pageant -c fix from 'pre-0.77'.
This commit is contained in:
commit
a5717f5ac2
@ -1508,8 +1508,8 @@ int WINAPI WinMain(HINSTANCE inst, HINSTANCE prev, LPSTR cmdline, int show)
|
||||
* If we see `-c', then the rest of the command line
|
||||
* should be treated as a command to be spawned.
|
||||
*/
|
||||
if (amo.index < amo.argc-1)
|
||||
command = argstart[amo.index + 1];
|
||||
if (amo.index < amo.argc)
|
||||
command = argstart[amo.index];
|
||||
else
|
||||
command = "";
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user