mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 23:19:29 +02:00
* call uniquestring before calling stringtoppchar
git-svn-id: trunk@709 -
This commit is contained in:
parent
289fc48ac0
commit
b0e5f64091
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user