From owner-svn-ports-all@FreeBSD.ORG Sun Aug 12 09:56:16 2012 Return-Path: Delivered-To: svn-ports-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B4E461065672; Sun, 12 Aug 2012 09:56:16 +0000 (UTC) (envelope-from itetcu@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 9EAF08FC18; Sun, 12 Aug 2012 09:56:16 +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 q7C9uGNW065693; Sun, 12 Aug 2012 09:56:16 GMT (envelope-from itetcu@svn.freebsd.org) Received: (from itetcu@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q7C9uGuT065691; Sun, 12 Aug 2012 09:56:16 GMT (envelope-from itetcu@svn.freebsd.org) Message-Id: <201208120956.q7C9uGuT065691@svn.freebsd.org> From: Ion-Mihai Tetcu Date: Sun, 12 Aug 2012 09:56:16 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r302432 - head/devel/libexecinfo/files X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Aug 2012 09:56:16 -0000 Author: itetcu Date: Sun Aug 12 09:56:15 2012 New Revision: 302432 URL: http://svn.freebsd.org/changeset/ports/302432 Log: Output only the used part of the buffer in backtrace_symbols_fd(). PR: 166278 Submitted by: Dmitrij Tejblum Modified: head/devel/libexecinfo/files/patch-execinfo.c (contents, props changed) Modified: head/devel/libexecinfo/files/patch-execinfo.c ============================================================================== --- head/devel/libexecinfo/files/patch-execinfo.c Sun Aug 12 09:36:30 2012 (r302431) +++ head/devel/libexecinfo/files/patch-execinfo.c Sun Aug 12 09:56:15 2012 (r302432) @@ -54,3 +54,11 @@ return rval; } +@@ -155,6 +158,6 @@ + return; + snprintf(buf, len, "%p\n", buffer[i]); + } +- write(fd, buf, len - 1); ++ write(fd, buf, strlen(buf)); + } + }