public inbox for cluster-cvs@sourceware.org
help / color / mirror / Atom feed
* cluster: RHEL5 - rgmanager: Fix clulog again
@ 2009-06-11 19:30 Lon Hohberger
0 siblings, 0 replies; only message in thread
From: Lon Hohberger @ 2009-06-11 19:30 UTC (permalink / raw)
To: cluster-cvs-relay
Gitweb: http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=72bf909018541edef839f5b92ab3f8eeae0bdce4
Commit: 72bf909018541edef839f5b92ab3f8eeae0bdce4
Parent: 47f11a83f75e8b6ea332dc64bf74bce793b0388e
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:29:55 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:30 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:30 cluster: RHEL5 - 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).