Browse Source

Fixing b28836e3

Source commit: aea1fb65d67e1f8a1f3a5c9b3d184b96e775d355
Martin Prikryl 2 years ago
parent
commit
762d297e07
1 changed files with 2 additions and 2 deletions
  1. 2 2
      source/core/ScpFileSystem.cpp

+ 2 - 2
source/core/ScpFileSystem.cpp

@@ -672,7 +672,7 @@ void __fastcall TSCPFileSystem::ExecCommand(TFSCommand Cmd, const TVarRec * args
 
   TOperationVisualizer Visualizer(FTerminal->UseBusyCursor);
 
-  SendCommand(Command);
+  SendCommand(FullCommand);
 
   int COParams =
     coWaitForLastLine |
@@ -681,7 +681,7 @@ void __fastcall TSCPFileSystem::ExecCommand(TFSCommand Cmd, const TVarRec * args
     FLAGMASK(FLAGSET(Params, ecReadProgress), coReadProgress) |
     FLAGMASK(FLAGSET(Params, ecIgnoreStdErr), coIgnoreStdErr);
 
-  ReadCommandOutput(COParams, &FullCommand);
+  ReadCommandOutput(COParams, &Command);
 
   if (Params & ecRaiseExcept)
   {