diff --git a/src/detection/terminalshell/terminalshell_windows.c b/src/detection/terminalshell/terminalshell_windows.c index f429ae81d..f1e27d63e 100644 --- a/src/detection/terminalshell/terminalshell_windows.c +++ b/src/detection/terminalshell/terminalshell_windows.c @@ -317,7 +317,7 @@ static void setTerminalInfoDetails(FFTerminalResult* result) else if(ffStrbufIgnCaseEqualS(&result->prettyName, "sshd") || ffStrbufStartsWithIgnCaseS(&result->prettyName, "sshd-")) { const char* tty = getenv("SSH_TTY"); - if (tty) ffStrbufSetS(tty); + if (tty) ffStrbufSetS(&result->prettyName, tty); } }