Page MenuHomeFreeBSD

D10062.1790924809.diff
No OneTemporary

Size
466 B
Referenced Files
None
Subscribers
None

D10062.1790924809.diff

Index: sbin/mount/getmntopts.c
===================================================================
--- sbin/mount/getmntopts.c
+++ sbin/mount/getmntopts.c
@@ -175,11 +175,14 @@
{
va_list ap;
char val[255] = { 0 };
+ char *sval;
va_start(ap, fmt);
vsnprintf(val, sizeof(val), fmt, ap);
va_end(ap);
- build_iovec(iov, iovlen, name, strdup(val), (size_t)-1);
+ sval = strdup(val);
+ build_iovec(iov, iovlen, name, sval, (size_t)-1);
+ free(sval);
}
/*

File Metadata

Mime Type
text/plain
Expires
Fri, Oct 2, 7:06 AM (12 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30093024
Default Alt Text
D10062.1790924809.diff (466 B)

Event Timeline