From 6b50e509e22f3c0d433f7f13bfce85b97ba85874 Mon Sep 17 00:00:00 2001 From: Stefan Ritt Date: Fri, 5 Sep 2008 08:19:40 +0000 Subject: [PATCH] Fixed bug which could crash elogd SVN revision: 2126 --- src/elogd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/elogd.c b/src/elogd.c index 7c59413c..c9a0ea90 100755 --- a/src/elogd.c +++ b/src/elogd.c @@ -25455,7 +25455,7 @@ void interprete(char *lbook, char *path) if (strncmp(path, "last", 4) == 0 && !chkext(path, ".png") && (!isparam("cmd") || strieq(getparam("cmd"), loc("Select"))) - && !isparam("newpwd")) { + && !isparam("newpwd") && atoi(path + 4) > 0) { show_elog_list(lbs, 0, atoi(path + 4), 0, FALSE, NULL); return; }