[gpm]Patch to fix minor mistakes in Gpm_Open

Kerry Scott McLeod gt2921b@prism.gatech.edu
Thu, 13 Jun 2002 16:07:26 -0400 (EDT)


  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

---559023410-851401618-1023998846=:11725
Content-Type: TEXT/PLAIN; charset=US-ASCII

Less verbage and more code:

gpm06122002-cvs-tty.patch applies against the cvs repository
gpm-1.20.0-tty.patch applies against the current release

This patch fixes some off by one bugs which were introduced
into the Gpm_Open function of liblow.c when devfs support was added.

The patches are simple, please apply if you find them to be correct.

Thanks,
Scott


Kerry Scott McLeod
Georgia Institute of Technology, Atlanta Georgia, 30332
uucp:	  ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt2921b
Internet: gt2921b@prism.gatech.edu

---559023410-851401618-1023998846=:11725
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="gpm06122002-cvs-tty.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.33.0206131607260.11725@acmex.gatech.edu>
Content-Description: for the cvs repository
Content-Disposition: attachment; filename="gpm06122002-cvs-tty.patch"

ZGlmZiAtdXJOIC4vZ3BtLmN2cy5vcmlnL3NyYy9saWJsb3cuYyAuL2dwbS9z
cmMvbGlibG93LmMNCi0tLSAuL2dwbS5jdnMub3JpZy9zcmMvbGlibG93LmMJ
MjAwMi0wNS0yOCAxNToxMzo1OC4wMDAwMDAwMDAgLTA0MDANCisrKyAuL2dw
bS9zcmMvbGlibG93LmMJMjAwMi0wNi0xMyAxNjoyODo0NS4wMDAwMDAwMDAg
LTA0MDANCkBAIC0yNDMsOSArMjQzLDkgQEANCiAgICAgICBjb25uLT52Yz0w
OyAgICAgICAgICAgICAgICAgLyogZGVmYXVsdCBoYW5kbGVyICovDQogICAg
ICAgaWYgKGZsYWcgPiAwKSB7ICAvKiBmb3JjZWQgdmMgbnVtYmVyICovDQog
ICAgICAgICAgY29ubi0+dmM9ZmxhZzsNCi0gICAgICAgICBpZigodHR5ID0g
bWFsbG9jKHN0cmxlbihjb25zb2xlbmFtZSkrR3BtX2NudF9kaWdpdHMoZmxh
ZykpKSAhPSBOVUxMKQ0KKyAgICAgICAgIGlmKCh0dHkgPSBtYWxsb2Moc3Ry
bGVuKGNvbnNvbGVuYW1lKStHcG1fY250X2RpZ2l0cyhmbGFnKSkpID09IE5V
TEwpDQogICAgICAgICAgICAgZ3BtX3JlcG9ydChHUE1fUFJfT09QUyxHUE1f
TUVTU19OT19NRU0pOw0KLSAgICAgICAgIHNucHJpbnRmKHR0eSxzdHJsZW4o
Y29uc29sZW5hbWUpLTEsIiVzIixjb25zb2xlbmFtZSk7DQorICAgICAgICAg
bWVtY3B5KHR0eSxjb25zb2xlbmFtZSxzdHJsZW4oY29uc29sZW5hbWUpLTEp
Ow0KICAgICAgICAgIHNwcmludGYoJnR0eVtzdHJsZW4oY29uc29sZW5hbWUp
LTFdLCIlaSIsZmxhZyk7DQogICAgICAgfSBlbHNlIHsgLyogdXNlIHlvdXIg
Y3VycmVudCB2YyAqLyANCiAgICAgICAgICBpZiAoaXNhdHR5KDApKSB0dHkg
PSB0dHluYW1lKDApOyAgICAgICAgICAgICAvKiBzdGRpbiAqLw0KQEAgLTI2
Miw3ICsyNjIsNyBAQA0KICAgICAgICAgICAgIGdvdG8gZXJyOw0KICAgICAg
ICAgIH0NCiAgICAgICAgICAgDQotICAgICAgICAgY29ubi0+dmM9YXRvaSgm
dHR5W3N0cmxlbihjb25zb2xlbmFtZSldKTsNCisgICAgICAgICBjb25uLT52
Yz1hdG9pKCZ0dHlbc3RybGVuKGNvbnNvbGVuYW1lKS0xXSk7DQogICAgICAg
fQ0KIA0KICAgICAgIGlmIChncG1fY29uc29sZWZkID09IC0xKQ0K
---559023410-851401618-1023998846=:11725
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="gpm-1.20.0-tty.patch"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.SOL.4.33.0206131607261.11725@acmex.gatech.edu>
Content-Description: for the current stable release
Content-Disposition: attachment; filename="gpm-1.20.0-tty.patch"

ZGlmZiAtdXJOIGdwbS0xLjIwLjAub3JpZy9zcmMvbGlibG93LmMgZ3BtLTEu
MjAuMC9zcmMvbGlibG93LmMNCi0tLSBncG0tMS4yMC4wLm9yaWcvc3JjL2xp
Ymxvdy5jCTIwMDItMDItMjMgMTA6NDI6MjMuMDAwMDAwMDAwIC0wNTAwDQor
KysgZ3BtLTEuMjAuMC9zcmMvbGlibG93LmMJMjAwMi0wNi0xMyAxNjo0NDo1
MS4wMDAwMDAwMDAgLTA0MDANCkBAIC0yNDMsOSArMjQzLDkgQEANCiAgICAg
ICBjb25uLT52Yz0wOyAgICAgICAgICAgICAgICAgLyogZGVmYXVsdCBoYW5k
bGVyICovDQogICAgICAgaWYgKGZsYWcgPiAwKSB7ICAvKiBmb3JjZWQgdmMg
bnVtYmVyICovDQogICAgICAgICAgY29ubi0+dmM9ZmxhZzsNCi0gICAgICAg
ICBpZigodHR5ID0gbWFsbG9jKHN0cmxlbihjb25zb2xlbmFtZSkrR3BtX2Nu
dF9kaWdpdHMoZmxhZykpKSAhPSBOVUxMKQ0KKyAgICAgICAgIGlmKCh0dHkg
PSBtYWxsb2Moc3RybGVuKGNvbnNvbGVuYW1lKStHcG1fY250X2RpZ2l0cyhm
bGFnKSkpID09IE5VTEwpDQogICAgICAgICAgICAgZ3BtX3JlcG9ydChHUE1f
UFJfT09QUyxHUE1fTUVTU19OT19NRU0pOw0KLSAgICAgICAgIHNucHJpbnRm
KHR0eSxzdHJsZW4oY29uc29sZW5hbWUpLTEsIiVzIixjb25zb2xlbmFtZSk7
DQorICAgICAgICAgbWVtY3B5KHR0eSxjb25zb2xlbmFtZSxzdHJsZW4oY29u
c29sZW5hbWUpLTEpOw0KICAgICAgICAgIHNwcmludGYoJnR0eVtzdHJsZW4o
Y29uc29sZW5hbWUpLTFdLCIlaSIsZmxhZyk7DQogICAgICAgfSBlbHNlIHsg
LyogdXNlIHlvdXIgY3VycmVudCB2YyAqLyANCiAgICAgICAgICBpZiAoaXNh
dHR5KDApKSB0dHkgPSB0dHluYW1lKDApOyAgICAgICAgICAgICAvKiBzdGRp
biAqLw0KQEAgLTI2Miw3ICsyNjIsNyBAQA0KICAgICAgICAgICAgIGdvdG8g
ZXJyOw0KICAgICAgICAgIH0gICANCiAgICAgICAgICAgDQotICAgICAgICAg
Y29ubi0+dmM9YXRvaSgmdHR5W3N0cmxlbihjb25zb2xlbmFtZSldKTsNCisg
ICAgICAgICBjb25uLT52Yz1hdG9pKCZ0dHlbc3RybGVuKGNvbnNvbGVuYW1l
KS0xXSk7DQogICAgICAgfQ0KIA0KICAgICAgIGlmIChncG1fY29uc29sZWZk
ID09IC0xKQ0K
---559023410-851401618-1023998846=:11725--