fix off-by-one in argument passed by iterate_fd() to callbacks