Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 0faef848 authored by rswindell's avatar rswindell

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

parent 8f9f8802
......@@ -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;
......
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