diff options
author | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-04 20:28:52 +0100 |
---|---|---|
committer | Alexander Preisinger <alexander.preisinger@gmail.com> | 2014-01-04 20:28:52 +0100 |
commit | 148918dd53368156f616e21a568fd1b97a1890a9 (patch) | |
tree | 30fdffb924bd4f4b8cae78492104495320cdb1cc /video | |
parent | 5d57a338ce8e7b2a2ce2a8bd8886d3bb43a3c0dd (diff) | |
download | mpv-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')
-rw-r--r-- | video/out/wayland_common.c | 2 |
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); |