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 824135f3 authored by rswindell's avatar rswindell

No longer using strncpy (requires target buffer be at least count bytes big),

using sprintf instead.
parent e09fdfe6
......@@ -407,7 +407,7 @@ BOOL DLLCALL fexistcase(char *path)
strncat(globme,tmp,MAX_PATH*4);
}
if(strcspn(path,"?*")!=strlen(path)) {
strncpy(path,globme,MAX_PATH);
sprintf(path,"%.*s",MAX_PATH,globme);
return(fexist(path));
}
......@@ -428,7 +428,7 @@ BOOL DLLCALL fexistcase(char *path)
break;
}
if(i<glb.gl_pathc) {
strncpy(path,glb.gl_pathv[i],MAX_PATH);
sprintf(path,"%.*s",MAX_PATH,glb.gl_pathv[i]);
globfree(&glb);
return TRUE;
}
......
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