projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
2007-03-02 [colin] 2.8.0cvs9
[claws.git]
/
src
/
mbox.c
diff --git
a/src/mbox.c
b/src/mbox.c
index c8e53a8aa6c94f582b0b1a08ecc983cc5f3ccc2b..0f79f99b05d98f0424b9efba0286fa929136e498 100644
(file)
--- a/
src/mbox.c
+++ b/
src/mbox.c
@@
-473,7
+473,7
@@
gint copy_mbox(gint srcfd, const gchar *dest)
}
while ((n_read = read(srcfd, buf, sizeof(buf))) > 0) {
- if (n_read
< sizeof(buf)
&& errno != 0) {
+ if (n_read
== -1
&& errno != 0) {
save_errno = errno;
break;
}