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 5e7d1e0..b69999d 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) src_fd = open(src, O_RDONLY); if (src_fd >= 0) { - target_fd = creat(target, O_WRONLY); + target_fd = creat(target); if (target_fd >= 0) { result = true; |