From owner-svn-src-stable@FreeBSD.ORG Sat Oct 6 18:47:16 2012 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id EEA2B106566B; Sat, 6 Oct 2012 18:47:15 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D8DD58FC18; Sat, 6 Oct 2012 18:47:15 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q96IlFKj018306; Sat, 6 Oct 2012 18:47:15 GMT (envelope-from avg@svn.freebsd.org) Received: (from avg@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q96IlFOp018304; Sat, 6 Oct 2012 18:47:15 GMT (envelope-from avg@svn.freebsd.org) Message-Id: <201210061847.q96IlFOp018304@svn.freebsd.org> From: Andriy Gapon Date: Sat, 6 Oct 2012 18:47:15 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org X-SVN-Group: stable-9 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r241260 - stable/9/sys/boot/common X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Oct 2012 18:47:16 -0000 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;