diff options
Diffstat (limited to 'sys/i386/isa/cx.c')
-rw-r--r-- | sys/i386/isa/cx.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/i386/isa/cx.c b/sys/i386/isa/cx.c index 9b00dabb8d638..b4fb32460fb7b 100644 --- a/sys/i386/isa/cx.c +++ b/sys/i386/isa/cx.c @@ -417,8 +417,7 @@ int cxioctl (dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) case 8: o->iftype = c->board->if8type; break; } if (c->master != c->ifp) - snprintf (o->master, sizeof(o->master), - "%s%d", c->master->if_name, + sprintf (o->master, "%s%d", c->master->if_name, c->master->if_unit); else *o->master = 0; @@ -846,7 +845,7 @@ int cxrinta (cx_chan_t *c) } /* Discard exception characters. */ - if ((risr & RISA_SCMASK) && tp && (tp->t_iflag & IXON)) + if ((risr & RISA_SCMASK) && (tp->t_iflag & IXON)) reoir |= REOI_DISCEXC; /* Handle received data. */ |