Revision: 9835 https://osdn.net/projects/ttssh2/scm/svn/commits/9835 Author: zmatsuo Date: 2022-03-25 22:32:47 +0900 (Fri, 25 Mar 2022) Log Message: ----------- ポート転送のコマンドラインオプションが使えない - r9436 での修正ミス - ticket #44175 Revision Links: -------------- https://osdn.net/projects/ttssh2/scm/svn/commits/9436 Ticket Links: ------------ https://osdn.net/projects/ttssh2/tracker/detail/44175 Modified Paths: -------------- trunk/ttssh2/ttxssh/ttxssh.c -------------- next part -------------- Modified: trunk/ttssh2/ttxssh/ttxssh.c =================================================================== --- trunk/ttssh2/ttxssh/ttxssh.c 2022-03-25 09:03:30 UTC (rev 9834) +++ trunk/ttssh2/ttxssh/ttxssh.c 2022-03-25 13:32:47 UTC (rev 9835) @@ -1479,9 +1479,9 @@ if (wcsncmp(option + 1, L"ssh", 3) == 0) { if (option[4] == 0) { pvar->settings.Enabled = 1; - } else if (wcsncmp(option + 4, L"-L", 3) == 0 || - wcsncmp(option + 4, L"-R", 3) == 0 || - wcsncmp(option + 4, L"-D", 3) == 0) { + } else if (wcsncmp(option + 4, L"-L", 2) == 0 || + wcsncmp(option + 4, L"-R", 2) == 0 || + wcsncmp(option + 4, L"-D", 2) == 0) { wchar_t *p = option + 5; option2[0] = *p; i = 1;