www.nico.schottelius.org/software/gpm/browse_source/gpm-1.20.3pre3/patches/1.20.1/jaroslav-liblow.diff
Nico Schottelius 95a46c5577 import gpm from unix.schottelius.org
Signed-off-by: Nico Schottelius <nico@ikn.schottelius.org>
2009-10-08 22:52:35 +02:00

13 lines
508 B
Diff

*** liblow.old Wed Sep 27 21:59:54 2006
--- liblow.c Wed Sep 27 21:59:59 2006
***************
*** 258,263 ****
--- 258,265 ----
goto err;
}
/* do we really need this check ? */
+ if(option.consolename==NULL) goto err;
+ if(tty==NULL) goto err;
if(strncmp(tty,option.consolename,strlen(option.consolename)-1)
|| !isdigit(tty[strlen(option.consolename)-1])) {
gpm_report(GPM_PR_ERR,"strncmp/isdigit/option.consolename failed");