> @@ -162,7 +162,7 @@ module_load_plist_vfs(const char *modpat
>       base = NULL;
>  
>       proppath = PNBUF_GET();
> -     strcpy(proppath, modpath);
> +     strlcpy(proppath, modpath, MAXPATHLEN);
>       pathlen = strlen(proppath);
>       if ((pathlen >= 6) && (strcmp(&proppath[pathlen - 5], ".kmod") == 0)) {
>               strcpy(&proppath[pathlen - 5], ".plist");
> 

The sole caller to this function is in the same file.
It uses snprintf with MAXPATHLEN to set path.

Reply via email to