Bugzilla – Bug 132053
gpm-1.20.1-309: array subscript out of range
Last modified: 2005-11-03 13:22:55 UTC
I just tried to compile package gpm-1.20.1-309 with the Intel C compiler It said mice.c(2278): warning #175: subscript out of range The source code is if (gunze_calib[1] == gunze_calib[4]) calibok = 0; but static int gunze_calib[4]; /* x0,y0 x1,y1 (measured at 1/8 and 7/8) */ so gunze_calib[4] doesn't exist. Suggest code rework. BTW, the author email account [ nico-gpm@schottelius.org ] seems to be dead.
(In reply to comment #0) > The source code is > > if (gunze_calib[1] == gunze_calib[4]) calibok = 0; Looks like the author ment gunze_calib[3] here. Thanks for the report. > BTW, the author email account [ nico-gpm@schottelius.org ] seems to be dead. gpm hasn't been touched for several years...