summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp2
1 files changed, 1 insertions, 1 deletions
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);