[Midnightbsd-cvs] src [8168] trunk/sys/boot/common/module.c: boot: file_loadraw should strdup name argument
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Sep 16 22:35:50 EDT 2016
Revision: 8168
http://svnweb.midnightbsd.org/src/?rev=8168
Author: laffer1
Date: 2016-09-16 22:35:50 -0400 (Fri, 16 Sep 2016)
Log Message:
-----------
boot: file_loadraw should strdup name argument
Modified Paths:
--------------
trunk/sys/boot/common/module.c
Modified: trunk/sys/boot/common/module.c
===================================================================
--- trunk/sys/boot/common/module.c 2016-09-17 02:35:14 UTC (rev 8167)
+++ trunk/sys/boot/common/module.c 2016-09-17 02:35:50 UTC (rev 8168)
@@ -396,7 +396,7 @@
/* Looks OK so far; create & populate control structure */
fp = file_alloc();
- fp->f_name = name;
+ fp->f_name = strdup(name);
fp->f_type = strdup(type);
fp->f_args = NULL;
fp->f_metadata = NULL;
More information about the Midnightbsd-cvs
mailing list