diff options
-rw-r--r-- | buf.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1456,7 +1456,7 @@ val buf_ash(val buf, val bits) struct buf *nbh = buf_handle(nbuf, self); ucnum i; - for (i = 0; i < len; i++) { + for (i = 0; i < cnlen; i++) { unsigned by = bh->data[i + v]; nbh->data[i] = (by | acc) >> r; acc = by << 8; |