From 3c24bb87211772859b6a9b74aefa85d57b07dfa7 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 26 Feb 2006 11:08:58 +0000 Subject: Fix for segfault if name of file left off commandline git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3329 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 914e8d4be..cf4872fbe 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -186,7 +186,7 @@ InspIRCd::InspIRCd(int argc, char** argv) Config->unlimitcore = true; } if (!strcmp(argv[i],"-logfile")) { - if (argc > i) + if (argc > i+1) { strlcpy(LOG_FILE,argv[i+1],MAXBUF); printf("LOG: Setting logfile to %s\n",LOG_FILE); -- cgit v1.2.3