From: ian Date: Sat, 17 May 2008 18:38:57 +0000 (+0000) Subject: do not recurse infinitely when die_vprintf_hook->ovprintf->die X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=9e5a0309b4770366ff18f5b447474aa0c16646d3;p=trains.git do not recurse infinitely when die_vprintf_hook->ovprintf->die --- diff --git a/hostside/realtime.c b/hostside/realtime.c index eda9fc9..ae8c804 100644 --- a/hostside/realtime.c +++ b/hostside/realtime.c @@ -225,7 +225,7 @@ void ouhexi(const char *word, const Byte *command, int length) { } void die_vprintf_hook(const char *fmt, va_list al) { - if (events) ovprintf(UPO, fmt, al); + if (events) { events=0; ovprintf(UPO, fmt, al); } } void die_hook(void) {