Skip to content
Snippets Groups Projects
Commit 6463929a authored by Fredrik Hübinette (Hubbe)'s avatar Fredrik Hübinette (Hubbe)
Browse files

bugfix in cp()

Rev: lib/modules/Stdio.pmod:1.28
parent f8bfbfeb
No related branches found
No related tags found
No related merge requests found
...@@ -512,10 +512,10 @@ int cp(string from, string to) ...@@ -512,10 +512,10 @@ int cp(string from, string to)
{ {
string data; string data;
object tmp=File(); object tmp=File();
if(tmp->open(from,"r")) return 0; if(!tmp->open(from,"r")) return 0;
function r=tmp->read; function r=tmp->read;
tmp=File(); tmp=File();
if(tmp->open(to,"wct")) return 0; if(!tmp->open(to,"wct")) return 0;
function w=tmp->write; function w=tmp->write;
do do
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment