Date: Sat, 6 Oct 2012 18:47:31 +0000 (UTC) From: Andriy Gapon <avg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r241261 - stable/8/sys/boot/common Message-ID: <201210061847.q96IlVHQ018380@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210061847.q96IlVHQ018380>