[patch] off-by-one in do_ncv.c