diff options
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 5e7d1e0fe2..b69999dd2c 100644 --- a/apps/onplay.c +++ b/apps/onplay.c | |||
@@ -638,7 +638,7 @@ static bool clipboard_pastefile(const char *src, const char *target, bool copy) | |||
638 | src_fd = open(src, O_RDONLY); | 638 | src_fd = open(src, O_RDONLY); |
639 | 639 | ||
640 | if (src_fd >= 0) { | 640 | if (src_fd >= 0) { |
641 | target_fd = creat(target, O_WRONLY); | 641 | target_fd = creat(target); |
642 | 642 | ||
643 | if (target_fd >= 0) { | 643 | if (target_fd >= 0) { |
644 | result = true; | 644 | result = true; |