chiark / gitweb /
do not recurse infinitely when die_vprintf_hook->ovprintf->die
authorian <ian>
Sat, 17 May 2008 18:38:57 +0000 (18:38 +0000)
committerian <ian>
Sat, 17 May 2008 18:38:57 +0000 (18:38 +0000)
hostside/realtime.c

index eda9fc951525d824394bf0ffef9730a13314a233..ae8c804a599e5dcc43836a6f01db094f95c44126 100644 (file)
@@ -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) {