Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164484793
D3685.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
531 B
Referenced Files
None
Subscribers
None
D3685.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
Sun, Aug 2, 8:06 AM (16 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35857293
Default Alt Text
D3685.diff (531 B)
Attached To
Mode
D3685: Make sure f_name is nul-terminated.
Attached
Detach File
Event Timeline
Log In to Comment