From: Alan Cox Date: Fri, 23 Oct 2015 21:42:33 +0000 (+0100) Subject: dragon-nx-32: make read/write lay buffers out the same X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=61c1a8c7f975f6597d389f3a99e3a719ab74bf37;p=FUZIX.git dragon-nx-32: make read/write lay buffers out the same As suggested by Brett --- diff --git a/Kernel/platform-dragon-nx32/devtty.c b/Kernel/platform-dragon-nx32/devtty.c index 1766f7f3..37b57489 100644 --- a/Kernel/platform-dragon-nx32/devtty.c +++ b/Kernel/platform-dragon-nx32/devtty.c @@ -376,7 +376,7 @@ static int gfx_draw_op(uarg_t arg, char *ptr, uint8_t *buf) return -EFAULT; if (arg == GFXIOC_READ) { video_read(buf); - if (uput(buf + 8, ptr, l)) + if (uput(buf, ptr, l + 8)) return EFAULT; return 0; }