Date: Sun, 25 May 2014 17:02:41 +0000 (UTC) From: Konstantin Belousov <kib@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: r266659 - stable/9/libexec/rtld-elf Message-ID: <201405251702.s4PH2fwx057581@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun May 25 17:02:40 2014 New Revision: 266659 URL: http://svnweb.freebsd.org/changeset/base/266659 Log: MFC r266411: Fix LD_LIBMAP. Approved by: re (gjb) Modified: stable/9/libexec/rtld-elf/libmap.c Directory Properties: stable/9/libexec/rtld-elf/ (props changed) Modified: stable/9/libexec/rtld-elf/libmap.c ============================================================================== --- stable/9/libexec/rtld-elf/libmap.c Sun May 25 17:00:22 2014 (r266658) +++ stable/9/libexec/rtld-elf/libmap.c Sun May 25 17:02:40 2014 (r266659) @@ -80,7 +80,7 @@ lm_init(char *libmap_override) if (libmap_override) { /* - * Do some character replacement to make $LIBMAP look + * Do some character replacement to make $LDLIBMAP look * like a text file, then parse it. */ libmap_override = xstrdup(libmap_override); @@ -94,8 +94,8 @@ lm_init(char *libmap_override) break; } } - lmc_parse(p, strlen(p)); - free(p); + lmc_parse(libmap_override, p - libmap_override); + free(libmap_override); } return (lm_count == 0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405251702.s4PH2fwx057581>