helpers.c: Fix mix of off-by-one errors in new print() code.

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>