Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F177637919
D3685.1794914344.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
531 B
Referenced Files
None
Subscribers
None
D3685.1794914344.diff
View Options
Index: head/usr.sbin/bhyve/acpi.c
===================================================================
--- head/usr.sbin/bhyve/acpi.c
+++ head/usr.sbin/bhyve/acpi.c
@@ -790,10 +790,10 @@
err = 0;
if (suffix) {
- strncpy(bf->f_name, basl_stemplate, MAXPATHLEN);
+ strlcpy(bf->f_name, basl_stemplate, MAXPATHLEN);
bf->fd = mkstemps(bf->f_name, strlen(BHYVE_ASL_SUFFIX));
} else {
- strncpy(bf->f_name, basl_template, MAXPATHLEN);
+ strlcpy(bf->f_name, basl_template, MAXPATHLEN);
bf->fd = mkstemp(bf->f_name);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 17, 11:19 AM (18 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41798816
Default Alt Text
D3685.1794914344.diff (531 B)
Attached To
Mode
D3685: Make sure f_name is nul-terminated.
Attached
Detach File
Event Timeline