summaryrefslogtreecommitdiff
path: root/methods/rred.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-09-23 17:26:43 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-09-23 17:26:43 +0200
commitf98233c1b1e93ef1bb595bfc6e59c74d9e05eb6a (patch)
tree82d6aa3ff7c2c2e6d073ff39f09e52aa7407562d /methods/rred.cc
parenta69a3a044be84f72508fb468cdf13d9e5f724dd4 (diff)
parentf7d6459db697c6dbba8e5d787a817e7721bfb577 (diff)
merged from debian
Diffstat (limited to 'methods/rred.cc')
-rw-r--r--methods/rred.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods/rred.cc b/methods/rred.cc
index 6fa57f3a6..27d95bdde 100644
--- a/methods/rred.cc
+++ b/methods/rred.cc
@@ -174,7 +174,7 @@ int RredMethod::ed_file(FILE *ed_cmds, FILE *in_file, FILE *out_file,
hash);
/* read the rest from infile */
- if (result > 0) {
+ if (result >= 0) {
while (fgets(buffer, BUF_SIZE, in_file) != NULL) {
written = fwrite(buffer, 1, strlen(buffer), out_file);
hash->Add((unsigned char*)buffer, written);