Look at simplecmd(). In the TLP case, isn't n being dereferenced as a NULL pointer? Or am I on crack? Thanks