[Ocfs2-tools-commits] zab commits r365 - trunk/fsck.ocfs2
svn-commits at oss.oracle.com
svn-commits at oss.oracle.com
Fri Nov 5 14:33:53 CST 2004
Author: zab
Date: 2004-11-05 14:33:51 -0600 (Fri, 05 Nov 2004)
New Revision: 365
Modified:
trunk/fsck.ocfs2/problem.c
Log:
o actually prep the va_list before using it
Modified: trunk/fsck.ocfs2/problem.c
===================================================================
--- trunk/fsck.ocfs2/problem.c 2004-11-04 21:48:23 UTC (rev 364)
+++ trunk/fsck.ocfs2/problem.c 2004-11-05 20:33:51 UTC (rev 365)
@@ -157,7 +157,9 @@
if((flags & PY) && (flags & PN))
flags &= ~PY;
+ va_start(ap, fmt);
len = vsnprintf(NULL, 0, fmt, ap);
+ va_end(ap);
if (len < 0) {
perror("vsnprintf failed when trying to bulid an output "
"buffer");
More information about the Ocfs2-tools-commits
mailing list