recordableinput: use a size_t for the length