From: Frank Ch. Eigler Date: Wed, 8 May 2013 12:25:52 +0000 (-0400) Subject: dyninst transport: don't send dummy \0 for error/warning messages X-Git-Tag: release-2.2~41 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=201a63a600e7e9d9260379cc27f3a5ccd5102f25;p=systemtap.git 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. --- 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);