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

md() checks for empty path parameter before copying string.

parent 492aab20
Branches
Tags
No related merge requests found
......@@ -254,11 +254,11 @@ BOOL md(char *inpath)
DIR* dir;
char path[MAX_PATH+1];
SAFECOPY(path,inpath);
if(path[0]==0)
if(inpath[0]==0)
return(FALSE);
SAFECOPY(path,inpath);
/* Remove trailing '.' if present */
if(path[strlen(path)-1]=='.')
path[strlen(path)-1]=0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment