diff options
author | eivind <eivind@FreeBSD.org> | 1998-12-13 23:36:16 +0000 |
---|---|---|
committer | eivind <eivind@FreeBSD.org> | 1998-12-13 23:36:16 +0000 |
commit | a5951b43db933baecfa342ce61a0c8601e80828b (patch) | |
tree | ef4eb6d1ac25ac01dd60b01a2e49c30f4e03e17d /sys/i386/isa | |
parent | 032c3c226a30a7363fe41bffde964ae20ba2a2f4 (diff) | |
download | FreeBSD-src-a5951b43db933baecfa342ce61a0c8601e80828b.zip FreeBSD-src-a5951b43db933baecfa342ce61a0c8601e80828b.tar.gz |
Fix 3-byte buffer overflow.
Also, while I'm here, fix up some more after those that haven't
noticed #endif isn't a comment introducer.
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/matcd/matcd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/matcd/matcd.c b/sys/i386/isa/matcd/matcd.c index adc8f8f..4f1943a 100644 --- a/sys/i386/isa/matcd/matcd.c +++ b/sys/i386/isa/matcd/matcd.c @@ -337,7 +337,7 @@ static char MATCDVERSION[]="Version 1(26) 18-Oct-95"; static char MATCDCOPYRIGHT[] = "Matsushita CD-ROM driver, Copr. 1994,1995 Frank Durda IV"; /* The proceeding strings may not be changed*/ -/* $Id: matcd.c,v 1.35 1998/07/04 22:30:20 julian Exp $ */ +/* $Id: matcd.c,v 1.36 1998/07/15 10:11:21 bde Exp $ */ /*--------------------------------------------------------------------------- Include declarations @@ -437,7 +437,7 @@ static struct matcd_data { void *rlc_devfs_token; void *la_devfs_token; void *lc_devfs_token; -#endif DEVFS +#endif /* DEVFS */ } matcd_data[TOTALDRIVES]; @@ -2445,7 +2445,7 @@ static int matcd_toc_entries(int ldrive, int cdrive, int controller, struct cd_toc_entry *to; int len,trk,i,z,port; unsigned char cmd[MAXCMDSIZ]; - unsigned char data[5]; + unsigned char data[8]; cd=&matcd_data[ldrive]; port=cd->iobase; |