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
This commit is contained in:
Jonas Häggqvist 2009-02-26 22:55:04 +00:00
parent dfd32efc63
commit 73639e8e2e

View file

@ -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;