From: Brett Gordon Date: Tue, 8 Dec 2015 22:56:22 +0000 (-0500) Subject: coco3: ttydw.c: fix bad port to minor translation on close. X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=e18047482094e160ea4194f729c7d64bd622a317;p=FUZIX.git coco3: ttydw.c: fix bad port to minor translation on close. --- diff --git a/Kernel/platform-coco3/ttydw.c b/Kernel/platform-coco3/ttydw.c index 99d7a075..b05d80e9 100644 --- a/Kernel/platform-coco3/ttydw.c +++ b/Kernel/platform-coco3/ttydw.c @@ -232,10 +232,10 @@ void dw_vpoll( ){ } /* VSER Channel closed? */ if( buf[0] == 16 ){ - int minor=dw_minor( buf[1]-1 ); - struct dw_in *p=dw_gettab( buf[1]-1 ); + int minor=dw_minor( buf[1] ); + struct dw_in *p=dw_gettab( buf[1] ); dw_vclose( minor ); - tty_carrier_drop( minor+1 ); + tty_carrier_drop( minor); continue; } /* VSER channel multiple data */