3f2b332964
Copy from Base:System/gpm based on submit request 47591 from user psmt OBS-URL: https://build.opensuse.org/request/show/47591 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gpm?expand=0&rev=24
14 lines
664 B
Diff
14 lines
664 B
Diff
Index: src/daemon/getmousedata.c
|
|
===================================================================
|
|
--- src/daemon/getmousedata.c.orig 2009-02-09 10:58:53.000000000 +0100
|
|
+++ src/daemon/getmousedata.c 2010-09-07 19:18:52.107824882 +0200
|
|
@@ -70,7 +70,7 @@ char *getMouseData(int fd, Gpm_Type *typ
|
|
|
|
if((i=(which_mouse->m_type)->packetlen-howmany)) /* still to get */
|
|
do {
|
|
- j = read(fd,edata-i,i); /* edata is pointer just after data */
|
|
+ j = read(fd,edata-i,howmany); /* edata is pointer just after data */
|
|
if (kd_mode!=KD_TEXT && fifofd != -1 && opt_rawrep && j > 0)
|
|
write(fifofd, edata-i, j);
|
|
i -= j;
|