diff options
author | Jonas Häggqvist <rasher@rasher.dk> | 2009-02-26 22:55:04 +0000 |
---|---|---|
committer | Jonas Häggqvist <rasher@rasher.dk> | 2009-02-26 22:55:04 +0000 |
commit | 73639e8e2e7d5fef3b9c6305f2de74c20a282d4b (patch) | |
tree | e993fc6549e4c4d417e90738d9fc20b159069c34 /apps/onplay.c | |
parent | dfd32efc639400dbe4f6d63f6de64edde6f4da36 (diff) |
Fix FS#9945 - Paste operation doesn't detect disk full (and possibly other errors).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20121 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/onplay.c')
-rw-r--r-- | apps/onplay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/onplay.c b/apps/onplay.c index 7c89e6320f..ead372d4e6 100644 --- a/apps/onplay.c +++ b/apps/onplay.c @@ -735,7 +735,7 @@ static bool clipboard_pastefile(const char *src, const char *target, bool copy) while(bytesread > 0) { byteswritten = write(target_fd, buffer, bytesread); - if (byteswritten == -1) { + if (byteswritten < 0) { result = false; size = 0; break; |