Skip to content
Snippets Groups Projects
Commit 23513871 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

0-init the 'gamedir' variable

Resolves CID 434888, not sure why this one didn't show up before.
parent 5f7f1104
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3672 passed
......@@ -1360,7 +1360,7 @@ int sbbs_t::external(const char* cmdline, long mode, const char* startup_dir)
fprintf(dosemubatfp,"SET PCBDRIVE=%s\r\n",nodedrive);
fprintf(dosemubatfp,"SET PCBDIR=\\\r\n");
char gamedir[MAX_PATH+1];
char gamedir[MAX_PATH+1]{};
if(startup_dir!=NULL && startup_dir[0]) {
SAFECOPY(str, startup_dir);
*lastchar(str) = 0;
......
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