diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 2 |
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); |