Date: Sat, 6 Oct 2012 18:47:15 +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-9@freebsd.org Subject: svn commit: r241260 - stable/9/sys/boot/common Message-ID: <201210061847.q96IlFOp018304@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201210061847.q96IlFOp018304>