summaryrefslogtreecommitdiffstats
path: root/video/out/wayland_common.c
diff options
context:
space:
mode:
authorAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-04 20:28:52 +0100
committerAlexander Preisinger <alexander.preisinger@gmail.com>2014-01-04 20:28:52 +0100
commit148918dd53368156f616e21a568fd1b97a1890a9 (patch)
tree30fdffb924bd4f4b8cae78492104495320cdb1cc /video/out/wayland_common.c
parent5d57a338ce8e7b2a2ce2a8bd8886d3bb43a3c0dd (diff)
downloadmpv-148918dd53368156f616e21a568fd1b97a1890a9.tar.bz2
mpv-148918dd53368156f616e21a568fd1b97a1890a9.tar.xz
wayland: fix obvious bug in dnd code
I still don't think this is the right approach.
Diffstat (limited to 'video/out/wayland_common.c')
-rw-r--r--video/out/wayland_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/out/wayland_common.c b/video/out/wayland_common.c
index b6bfee8733..7e7f3f6b55 100644
--- a/video/out/wayland_common.c
+++ b/video/out/wayland_common.c
@@ -1000,7 +1000,7 @@ static int vo_wayland_check_events (struct vo *vo)
size_t str_len = 0;
int has_read = 0;
- while (0 < (has_read = read(fd.fd, buffer, to_read))) {
+ while (0 < (has_read = read(fd.fd, buffer+str_len, to_read))) {
if (buffer_len + to_read < buffer_len) {
MP_ERR(wl, "Integer overflow while reading from fd\n");
free(buffer);