Remove strncpy
This commit is contained in:
+2
-1
@@ -135,7 +135,8 @@ int mime_is_compressible(const char *type) {
|
||||
}
|
||||
|
||||
int strcpy_rem_webroot(char *dst, const char *src, long len, const char *webroot) {
|
||||
strncpy(dst, src, len);
|
||||
memcpy(dst, src, len);
|
||||
dst[len] = 0;
|
||||
if (webroot == NULL)
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user