Skip to content
Snippets Groups Projects
Commit 32269188 authored by deuce's avatar deuce
Browse files

fix command-line parsing bug (Would cause segfaults)

parent be3ad5ed
No related branches found
No related tags found
No related merge requests found
......@@ -143,13 +143,13 @@ char* argv[100];
od_control.od_force_local=TRUE;
arg++;
}
if(argc >= arg) {
if(argc > arg) {
strcpy(od_control.info_path,argv[arg]);
if(isdir(argv[arg]))
strcat(od_control.info_path, DIRSEP_STR);
arg++;
}
if(argc >= arg) {
if(argc > arg) {
int type,len,got;
SOCKET sock;
#ifdef _WIN32
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment