summaryrefslogtreecommitdiff
path: root/methods/rred.cc
diff options
context:
space:
mode:
authorDavid Kalnischkies <kalnischkies@gmail.com>2009-09-08 23:11:11 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2009-09-08 23:11:11 +0200
commitebf2e25b204195892b6c4866b1517755efb590b4 (patch)
tree4b575e54c5a86a522e115686d7d8c355c2b9907c /methods/rred.cc
parentdaa4aa525a9d0de9a9a64be59615fc4be044bb83 (diff)
add text at the top without failing in rred (Closes: #545694)
Patch from Bernhard R. Link, thanks!
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);