summaryrefslogtreecommitdiff
path: root/apps/onplay.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/onplay.c')
-rw-r--r--apps/onplay.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/onplay.c b/apps/onplay.c
index c10d110350..6314bd932c 100644
--- a/apps/onplay.c
+++ b/apps/onplay.c
@@ -598,13 +598,14 @@ static bool clipboard_copy(void)
598static bool clipboard_pastefile(const char *src, const char *target, bool copy) 598static bool clipboard_pastefile(const char *src, const char *target, bool copy)
599{ 599{
600 int src_fd, target_fd; 600 int src_fd, target_fd;
601 ssize_t buffersize, size, bytesread, byteswritten; 601 size_t buffersize;
602 ssize_t size, bytesread, byteswritten;
602 char *buffer; 603 char *buffer;
603 bool result = false; 604 bool result = false;
604 605
605 if (copy) { 606 if (copy) {
606 /* See if we can get the plugin buffer for the file copy buffer */ 607 /* See if we can get the plugin buffer for the file copy buffer */
607 buffer = (char *) plugin_get_buffer((size_t *)&buffersize); 608 buffer = (char *) plugin_get_buffer(&buffersize);
608 if (buffer == NULL || buffersize < 512) { 609 if (buffer == NULL || buffersize < 512) {
609 /* Not large enough, try for a disk sector worth of stack instead */ 610 /* Not large enough, try for a disk sector worth of stack instead */
610 buffersize = 512; 611 buffersize = 512;