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

Bounds-checks the cfg->new_shell value.

parent 922c7082
No related branches found
No related tags found
No related merge requests found
......@@ -390,6 +390,9 @@ BOOL read_main_cfg(scfg_t* cfg, char* error)
}
cfg->total_shells=i;
if(cfg->new_shell>=cfg->total_shells)
cfg->new_shell=0;
fclose(instream);
return(TRUE);
}
......
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