M port/cis.c => port/cis.c +2 -1
@@ 214,7 214,8 @@ nanoamps(Cisdat *cis)
}
/*
- * only nominal voltage is important for config
+ * only nominal voltage (feature 1) is important for config,
+ * other features must read card to stay in sync.
*/
static ulong
power(Cisdat *cis)
M port/unthwack.c => port/unthwack.c +2 -0
@@ 168,6 168,8 @@ unthwack(Unthwack *ut, uchar *dst, int ndst, uchar *src, int nsrc, ulong seq)
lit = (lit - 64) & 0xff;
}
}
+ if(d >= dmax)
+ return -1;
*d++ = lit;
lithist = (lithist << 1) | (lit < 32) | (lit > 127);
blocks->maxoff++;