summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-09 06:18:30 (GMT)
committer Timothy Pearson <kb9vqf@pearsoncomputing.net>2015-01-09 06:18:30 (GMT)
commitff4002f7a42db78228975b1c492cd8afa22df886 (patch)
treec591303cf5fb7e808387d53a04c16eda002af6ad
parent7690d56228fdf1f634046f53a489ab2b93099a83 (diff)
downloadlibr-ff4002f7.zip
libr-ff4002f7.tar.gz
Fix prior commit
-rw-r--r--src/libr-bfd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libr-bfd.c b/src/libr-bfd.c
index 629a466..338cd81 100644
--- a/src/libr-bfd.c
+++ b/src/libr-bfd.c
@@ -334,7 +334,7 @@ int safe_rename(const char *old, const char *new)
fclose(in);
return -1;
}
- while(!feof(in) && !ferror(in)) {
+ while(!feof(in)) {
read = fread(buffer, 1, sizeof(buffer), in);
if (read > 0) {
fwrite(buffer, 1, read, out);