Commit 5312e43c authored by Rob Swindell's avatar Rob Swindell 💬
Browse files

Fix CID 33617: Copy into fixed size buffer

parent 7aa7df50
...@@ -46,11 +46,11 @@ for(i=1;i<argc;i++) ...@@ -46,11 +46,11 @@ for(i=1;i<argc;i++)
if(!stricmp(argv[i],"/P")) if(!stricmp(argv[i],"/P"))
pause=1; pause=1;
else else
strcpy(dir,argv[1]); SAFECOPY(dir,argv[1]);
if(!dir[0]) { if(!dir[0]) {
p=getenv("SBBSCTRL"); p=getenv("SBBSCTRL");
if(p!=NULL) if(p!=NULL)
strcpy(dir,p); } SAFECOPY(dir,p); }
backslash(dir); backslash(dir);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment