Fix crash for 'ssh -t localhost bash -l'

This needs to be handled better but for now stop crashing.

BUG: 297156
This commit is contained in:
Kurt Hindenburg
2012-03-30 21:21:56 -04:00
parent 7e0ba7079a
commit f28b60ba09

View File

@@ -938,7 +938,10 @@ SSHProcessInfo::SSHProcessInfo(const ProcessInfo& process)
if (optionArgumentCombined) {
argument = args[i].mid(2);
} else {
argument = args[i + 1];
// Verify correct # arguments are given
if ((i + 1) < args.count()) {
argument = args[i + 1];
}
i++;
}