svn commit: r241260 - stable/9/sys/boot/common

Andriy Gapon avg at FreeBSD.org
Sat Oct 6 18:47:16 UTC 2012


Author: avg
Date: Sat Oct  6 18:47:15 2012
New Revision: 241260
URL: http://svn.freebsd.org/changeset/base/241260

Log:
  MFC r240342: boot: file_loadraw should strdup name argument

Modified:
  stable/9/sys/boot/common/module.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/boot/   (props changed)

Modified: stable/9/sys/boot/common/module.c
==============================================================================
--- stable/9/sys/boot/common/module.c	Sat Oct  6 18:45:18 2012	(r241259)
+++ stable/9/sys/boot/common/module.c	Sat Oct  6 18:47:15 2012	(r241260)
@@ -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-stable-9 mailing list