bv_val is not \0 terminated

Add a bit more validation for -H