From 201a63a600e7e9d9260379cc27f3a5ccd5102f25 Mon Sep 17 00:00:00 2001 From: "Frank Ch. Eigler" Date: Wed, 8 May 2013 08:25:52 -0400 Subject: [PATCH] dyninst transport: don't send dummy \0 for error/warning messages The former code caused emission of \0's after each OOB message. They are lovely and round, but are worth zero, nilch, nada. --- runtime/dyninst/io.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/runtime/dyninst/io.c b/runtime/dyninst/io.c index 596b2f7c2..878c4e2c5 100644 --- a/runtime/dyninst/io.c +++ b/runtime/dyninst/io.c @@ -99,7 +99,8 @@ static void _stp_vlog (enum code type, const char *func, int line, fprintf(_stp_err, "%s", buf); } else if (type != DBUG) { - _stp_dyninst_transport_write_oob_data(buf, num + start + 1); + /* NB: don't explicitly send the \0 terminator. */ + _stp_dyninst_transport_write_oob_data(buf, num + start); } else { _stp_print(buf); -- 2.43.5