mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-22 06:38:37 -05: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
|
* If we see `-c', then the rest of the command line
|
||||||
* should be treated as a command to be spawned.
|
* should be treated as a command to be spawned.
|
||||||
*/
|
*/
|
||||||
if (amo.index < amo.argc-1)
|
if (amo.index < amo.argc)
|
||||||
command = argstart[amo.index + 1];
|
command = argstart[amo.index];
|
||||||
else
|
else
|
||||||
command = "";
|
command = "";
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user