Răsfoiți Sursa

* replace strpcopy with its own code because unix no longer
depends on the strings unit (patch from Peter)

git-svn-id: trunk@9851 -

Jonas Maebe 17 ani în urmă
părinte
comite
1d88e3eb11
1 a modificat fișierele cu 2 adăugiri și 1 ștergeri
  1. 2 1
      rtl/unix/unix.pp

+ 2 - 1
rtl/unix/unix.pp

@@ -431,7 +431,8 @@ function fpsystem(const Command:string):cint;
 var c:array[0..255] of char;
 var c:array[0..255] of char;
 
 
 begin
 begin
-  strpcopy(@c,command);
+  move(command[1],c[0],length(command));
+  c[length(command)]:=#0;
   fpsystem:=xfpsystem(@c);
   fpsystem:=xfpsystem(@c);
 end;
 end;