File pvm-3.4.5_missing_format_param.patch of Package pvm

Index: src/pvmlog.c
===================================================================
--- src/pvmlog.c.orig
+++ src/pvmlog.c
@@ -348,7 +348,8 @@
 	char *fmt;
 	va_list ap;
 {
-	char vtmp[255];
+	size_t vlen = 255;
+	char vtmp[vlen];
 	int cnt = 0;
 	int cc;
 
@@ -362,7 +363,7 @@
 
 	/* snag var arg string, in case re-use whacks it... */
 	/* (thank you very much x86_64...  :-Q */
-	vsprintf(vtmp, fmt, ap);
+	vsnprintf(vtmp, vlen, fmt, ap);
 
 	if (log_how & 1) {
 		if (atnewline) {
@@ -488,7 +489,7 @@
 	pvmlogprintf("em=0x%lx\n", (long) em);
 
 	for (i=0; i < 10 ; i++ )
-		pvmlogprintf("[%x/%c]", em[i]);
+		pvmlogprintf("[%x/%c]", em[i], em[i]);
 	pvmlogprintf("\n");
 
 	pvmlogprintf("%s: %s\n", s, em);