Fixed bug which could crash elogd

SVN revision: 2126
This commit is contained in:
2008-09-05 08:19:40 +00:00
parent 5acad4dc1f
commit 6b50e509e2
+1 -1
View File
@@ -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;
}