diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c index c43d9d0bd6..cbc98d24c2 100644 --- a/cmd/zdb/zdb.c +++ b/cmd/zdb/zdb.c @@ -3385,8 +3385,10 @@ zdb_read_block(char *thing, spa_t *spa) continue; p = &flagstr[i + 1]; - if (bit == ZDB_FLAG_PRINT_BLKPTR) + if (bit == ZDB_FLAG_PRINT_BLKPTR) { blkptr_offset = strtoull(p, &p, 16); + i = p - &flagstr[i + 1]; + } if (*p != ':' && *p != '\0') { (void) printf("***Invalid flag arg: '%s'\n", s); free(dup);