Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/kern



> @@ -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.


Home | Main Index | Thread Index | Old Index