Use memmove() instead of allocating a new buffer. Changed: U trunk/Tools/tm_interactive_input/src/buffer.c