Skip to content
Snippets Groups Projects
Commit 478d6d54 authored by rswindell's avatar rswindell
Browse files

Don't stricmp(argv[1]) if it's NULL.

parent f1475efb
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ int main(int argc, char **argv)
sprintf(node_dir,"%s",getenv("SBBSNODE"));
if(node_dir[strlen(node_dir)-1]!='\\')
strcat(node_dir,"\\");
if(!stricmp(argv[1],"/?")) {
if(argc>1 && !stricmp(argv[1],"/?")) {
printf("\r\nDomain Poker Clean-Up Copyright 2005 Domain "
"Entertainment");
printf("\r\n\r\nUsage: DPCLEAN [/options]\r\n");
......
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