len*2+2 isn't actually "Big Enough" for all possible CTRL-A content... but it's hightly unlikely this is the real problem.