Cast size_t len arguments to %.*s to int