--- lib/eventlog.c 2007/07/27 13:23:51 1.45 +++ lib/eventlog.c 2007/08/11 05:46:39 @@ -757,7 +757,7 @@ lasttoshow = ewalk; ewalk = ewalk->next; } while (ewalk && (countnext = NULL; /* Terminate list */ + if (ewalk) ewalk->next = NULL; /* Terminate list if any items left */ if (maxminutes > 0) { sprintf(title, "%d events received in the past %u minutes",