svn commit: r241261 - stable/8/sys/boot/common

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


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

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

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

Modified: stable/8/sys/boot/common/module.c
==============================================================================
--- stable/8/sys/boot/common/module.c	Sat Oct  6 18:47:15 2012	(r241260)
+++ stable/8/sys/boot/common/module.c	Sat Oct  6 18:47:31 2012	(r241261)
@@ -400,7 +400,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-all mailing list