summaryrefslogtreecommitdiff
path: root/fileutils.cpp
diff options
context:
space:
mode:
authorPixel <Pixel>2002-05-12 00:58:38 +0000
committerPixel <Pixel>2002-05-12 00:58:38 +0000
commit84e4d27b5cb96e6d47ef17c34265f407ad9cd385 (patch)
tree7c0ec0df541ea55142c8ebb2fe896caa5e370fe9 /fileutils.cpp
parentf203ea857d735eec248e1ffbfbf65d2c37005c6e (diff)
Dayly commit
Diffstat (limited to 'fileutils.cpp')
-rw-r--r--fileutils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fileutils.cpp b/fileutils.cpp
index 32ca43e..62e2c0b 100644
--- a/fileutils.cpp
+++ b/fileutils.cpp
@@ -39,7 +39,7 @@ void copy(FILE * s, FILE * d, long size) {
unsigned char c;
long r;
- for (i = 0; i < size; i++) {
+ for (i = 0; (i < size) || (size < 0); i++) {
r = fread(&c, 1, 1, s);
if (r == 0) {
break;