Răsfoiți Sursa

Fixing logging of multiple prompts

Source commit: 6e159df057fa287392dde99fd1a0f608c3b35568
Martin Prikryl 3 ani în urmă
părinte
comite
a98d6af45e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      source/core/SecureShell.cpp

+ 1 - 1
source/core/SecureShell.cpp

@@ -863,7 +863,7 @@ bool __fastcall TSecureShell::PromptUser(bool /*ToServer*/,
     (Instructions.IsEmpty() ? UnicodeString(L"<no instructions>") : FORMAT(L"\"%s\"", (Instructions)));
   UnicodeString PromptsLog =
     (Prompts->Count > 0 ? FORMAT(L"\"%s\"", (Prompts->Strings[0])) : UnicodeString(L"<no prompt>")) +
-    (Prompts->Count > 1 ? FORMAT(L"%d more", (Prompts->Count - 1)) : UnicodeString());
+    (Prompts->Count > 1 ? FORMAT(L" + %d more", (Prompts->Count - 1)) : UnicodeString());
   LogEvent(FORMAT(L"Prompt (%s, \"%s\", %s, %s)", (PromptDesc, AName, InstructionsLog, PromptsLog)));
 
   Name = Name.Trim();