Page MenuHomeFreeBSD

D3685.1794914344.diff
No OneTemporary

Authored By
Unknown
Size
531 B
Referenced Files
None
Subscribers
None

D3685.1794914344.diff

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

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)

Event Timeline