Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Sep 2012 06:18:36 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r240342 - head/sys/boot/common
Message-ID:  <201209110618.q8B6Ia6Z090060@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201209110618.q8B6Ia6Z090060>