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;