Fix segmentation fault on listing transactions

Due to the fact that in readstr() the pointer to memory allocated
on stack could be replaced with a pointer to string constant, discuss(1)
failed when listing of transactions was interrupted by Ctrl+C. This
commit fixes that, probably not in the best possible way.