public inbox for cluster-cvs@sourceware.org help / color / mirror / Atom feed
From: David Teigland <teigland@fedoraproject.org> To: cluster-cvs-relay@redhat.com Subject: fence: master - fence_tool: dump only the size of the buffer Date: Mon, 09 Mar 2009 22:01:00 -0000 [thread overview] Message-ID: <20090309220104.1090A120265@lists.fedorahosted.org> (raw) Gitweb: http://git.fedorahosted.org/git/fence.git?p=fence.git;a=commitdiff;h=5300fc8e07c2297e295c4f7ebd9996fa1f064558 Commit: 5300fc8e07c2297e295c4f7ebd9996fa1f064558 Parent: 36cf04edd383fd8018c9fca515ed44c2d1f96399 Author: David Teigland <teigland@redhat.com> AuthorDate: Mon Mar 9 16:51:21 2009 -0500 Committer: David Teigland <teigland@redhat.com> CommitterDate: Mon Mar 9 16:57:52 2009 -0500 fence_tool: dump only the size of the buffer Avoid printing a bunch of \0's from unfilled buffers. Signed-off-by: David Teigland <teigland@redhat.com> --- fence/fence_tool/fence_tool.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fence/fence_tool/fence_tool.c b/fence/fence_tool/fence_tool.c index 74824c2..8ee5544 100644 --- a/fence/fence_tool/fence_tool.c +++ b/fence/fence_tool/fence_tool.c @@ -421,7 +421,7 @@ static void do_dump(void) if (rv < 0) die("can't communicate with fenced"); - do_write(STDOUT_FILENO, buf, sizeof(buf)); + do_write(STDOUT_FILENO, buf, strlen(buf)); exit(EXIT_SUCCESS); }
reply other threads:[~2009-03-09 22:01 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090309220104.1090A120265@lists.fedorahosted.org \ --to=teigland@fedoraproject.org \ --cc=cluster-cvs-relay@redhat.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).