mirror of
https://github.com/KDE/konsole.git
synced 2026-05-04 20:55:56 -04:00
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:
@@ -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++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user