svn commit: r240342 - head/sys/boot/common
Andriy Gapon
avg at FreeBSD.org
Tue Sep 11 06:18:37 UTC 2012
Author: avg
Date: Tue Sep 11 06:18:36 2012
New Revision: 240342
URL: http://svn.freebsd.org/changeset/base/240342
Log:
boot: file_loadraw should strdup name argument
... the same way it's done for type argument.
MFC after: 2 weeks
Modified:
head/sys/boot/common/module.c
Modified: head/sys/boot/common/module.c
==============================================================================
--- head/sys/boot/common/module.c Tue Sep 11 06:15:55 2012 (r240341)
+++ head/sys/boot/common/module.c Tue Sep 11 06:18:36 2012 (r240342)
@@ -396,7 +396,7 @@ file_loadraw(char *type, char *name)
/* 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 svn-src-head
mailing list