Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Aug 2012 09:56:16 +0000 (UTC)
From:      Ion-Mihai Tetcu <itetcu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r302432 - head/devel/libexecinfo/files
Message-ID:  <201208120956.q7C9uGuT065691@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));
+     }
+ }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208120956.q7C9uGuT065691>