src/prompt.c: use dynamic memory management for the prompt timeout