Update vec.c

added vec_validate_size