Browse Source

* call uniquestring before calling stringtoppchar

git-svn-id: trunk@709 -
peter 20 years ago
parent
commit
b0e5f64091
1 changed files with 4 additions and 1 deletions
  1. 4 1
      rtl/unix/sysutils.pp

+ 4 - 1
rtl/unix/sysutils.pp

@@ -651,7 +651,7 @@ Function FileSetDate (Const FileName : String;Age : Longint) : Longint;
 
 var
   t: TUTimBuf;
-  
+
 begin
   Result := 0;
   t.actime := Age;
@@ -923,6 +923,9 @@ Begin
    if Comline<>'' Then
      begin
        CommandLine:=ComLine;
+       { Make an unique copy because stringtoppchar modifies the
+         string }
+       UniqueString(CommandLine);
        cmdline2:=StringtoPPChar(CommandLine,1);
        cmdline2^:=pchar(Path);
      end