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

Address GCC warning: field precision specifier '.*' expects argument of type 'int'

parent 8f9f8802
Branches
Tags
No related merge requests found
......@@ -1158,7 +1158,7 @@ int DLLCALL mkpath(const char* path)
break;
tp=p;
FIND_CHARSET(tp,sep);
safe_snprintf(dir,sizeof(dir),"%.*s",tp-path, path);
safe_snprintf(dir,sizeof(dir),"%.*s", (int)(tp-path), path);
if(!isdir(dir)) {
if((result=MKDIR(dir))!=0)
break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment