diff options
Diffstat (limited to 'source/a/gpm/gpm-1.20.1-gpmopen.patch')
-rw-r--r-- | source/a/gpm/gpm-1.20.1-gpmopen.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/source/a/gpm/gpm-1.20.1-gpmopen.patch b/source/a/gpm/gpm-1.20.1-gpmopen.patch new file mode 100644 index 00000000..f36ad939 --- /dev/null +++ b/source/a/gpm/gpm-1.20.1-gpmopen.patch @@ -0,0 +1,22 @@ +--- gpm-1.20.1/src/lib/liblow.c.gpmopen 2004-05-04 17:36:09.000000000 -0400 ++++ gpm-1.20.1/src/lib/liblow.c 2004-05-04 17:42:51.000000000 -0400 +@@ -200,8 +200,6 @@ + Gpm_Stst *new = NULL; + char* sock_name = 0; + +- consolename = NULL; +- + #if 0 + gpm_report(GPM_PR_DEBUG,"VC: %d",flag); + #endif +@@ -260,6 +258,10 @@ + gpm_report(GPM_PR_ERR,"checking tty name failed"); + goto err; + } ++ if (consolename == NULL) { ++ gpm_report(GPM_PR_ERR,"consolename not set"); ++ goto err; ++ } + /* do we really need this check ? */ + if(strncmp(tty,consolename,strlen(consolename)-1) + || !isdigit(tty[strlen(consolename)-1])) { |