]> sourceware.org Git - systemtap.git/commitdiff
dyninst transport: don't send dummy \0 for error/warning messages
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 8 May 2013 12:25:52 +0000 (08:25 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 8 May 2013 12:25:52 +0000 (08:25 -0400)
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

index 596b2f7c2731731c2918daaf6d84b5deec548065..878c4e2c56ed7b9f7be99b5635226be363238263 100644 (file)
@@ -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);
This page took 0.030631 seconds and 5 git commands to generate.