ed: new append from rob, avoids overflow in pointer arithmetic R=rsc http://codereview.appspot.com/188041