aboutsummaryrefslogtreecommitdiffstats
path: root/c/blk.c
diff options
context:
space:
mode:
Diffstat (limited to 'c/blk.c')
-rw-r--r--c/blk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/blk.c b/c/blk.c
index adf2a58..36839c0 100644
--- a/c/blk.c
+++ b/c/blk.c
@@ -6,7 +6,7 @@ void main(void) {
if (argc >= 3 && argv[0][0] == 'f') {
bfill(atou(argv[1]), atou(argv[2]));
} else if (argc >= 2 && argv[0][0] == 'p') {
- putu(bpeek(atou(argv[1]))); nl();
+ putu(bpeek2(atou(argv[1]), argc>=3?atou(argv[2]):0)); nl();
} else {
puts("usage: blk fill <n> <v> | blk peek <n>"); nl();
}