don't write to a constant pointer

instead allocate action on the stack and copy the data there