public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL54 - rgmanager: Fix clulog again
@ 2009-06-11 19:32 Lon Hohberger
  0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-06-11 19:32 UTC (permalink / raw)
  To: cluster-cvs-relay

Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=8b890f7fa7da3143c132d514ce83fafff30b69b1
Commit:        8b890f7fa7da3143c132d514ce83fafff30b69b1
Parent:        1d101c6b92cad6266d41ad935e2dc8e1d06d732d
Author:        Lon Hohberger <lhh@redhat.com>
AuthorDate:    Thu Jun 11 15:20:06 2009 -0400
Committer:     Lon Hohberger <lhh@redhat.com>
CommitterDate: Thu Jun 11 15:31:18 2009 -0400

rgmanager: Fix clulog again

Bugzilla 471431

Signed-off-by: Lon Hohberger <lhh@redhat.com>
---
 rgmanager/src/utils/clulog.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/rgmanager/src/utils/clulog.c b/rgmanager/src/utils/clulog.c
index 994844b..a717cff 100644
--- a/rgmanager/src/utils/clulog.c
+++ b/rgmanager/src/utils/clulog.c
@@ -119,7 +119,7 @@ main(int argc, char **argv)
     }
 
     /* Add two bytes for linefeed and NULL terminator */
-    len = strlen(argv[argc-1]) + 2;
+    len = strlen(msg_ptr) + 2;
     logmsg = (char*)malloc(strlen(msg_ptr)+2);
     if (logmsg == NULL) {
         fprintf(stderr,
@@ -127,7 +127,7 @@ main(int argc, char **argv)
         exit(0);
     }
 
-    snprintf(logmsg, len, "%s\n", argv[argc-1]);
+    snprintf(logmsg, len, "%s\n", msg_ptr);
 
     if (!cmdline_loglevel) {
 	/*


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-06-11 19:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-11 19:32 cluster: RHEL54 - rgmanager: Fix clulog again Lon Hohberger

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).