projects
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* methods/connect.cc:
[apt.git]
/
methods
/
rred.cc
diff --git
a/methods/rred.cc
b/methods/rred.cc
index 6fa57f3a60f58263da407f706ca31f9601a2aba3..27d95bdde0a0051ae568a07616921d40748b7711 100644
(file)
--- 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);