diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-26 11:08:58 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-02-26 11:08:58 +0000 |
commit | 3c24bb87211772859b6a9b74aefa85d57b07dfa7 (patch) | |
tree | f3f5ed1a9770d7fab314ef33ec02db49a9173df7 /src | |
parent | a06876d5fd5e4222f5a568daea7f192996e53c2f (diff) |
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
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); |