Commit d24cf52e authored by Jim Fulton's avatar Jim Fulton

Added end-of-file check to copy.

parent 87bee8b0
......@@ -110,6 +110,7 @@ def cp(f1, f2, l):
while l > 0:
if n > l: n=l
d=read(n)
if not d: break
write(d)
l = l - len(d)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment