M bitsy/devpcmcia.c => bitsy/devpcmcia.c +1 -0
@@ 329,6 329,7 @@ pcmctlwrite(char *p, long n, ulong, PCMslot *sp)
}
/* configure device */
+ cf.type = nil;
kstrdup(&cf.type, cmd->f[2]);
cf.mem = (ulong)sp->mem;
cf.port = (ulong)sp->regs;
M bitsy/devsac.c => bitsy/devsac.c +1 -1
@@ 231,7 231,7 @@ sacwalk(Chan *c, Chan *nc, char **name, int nname)
if(sac == nil) {
if(j == 0)
error(Enonexist);
- strncpy(up->error, Enonexist, NAMELEN);
+ strncpy(up->error, Enonexist, ERRMAX);
break;
}
pathtoqid(getl(sac->qid), &nc->qid);
M port/cis.c => port/cis.c +1 -1
@@ 304,7 304,7 @@ iospaces(Cisdat *cis, PCMconftab *ct)
nio = (c&0xf)+1;
for(i = 0; i < nio; i++){
ct->io[i].start = getlong(cis, (c>>4)&0x3);
- ct->io[0].len = getlong(cis, (c>>6)&0x3);
+ ct->io[i].len = getlong(cis, (c>>6)&0x3);
}
ct->nio = nio;
}