--- nagios-3.01b/base/utils.c	2007-08-16 15:45:10.000000000 +0200
+++ nagios-3.01b-utils.c-perfdata-with-trailing-blank/base/utils.c	2007-08-18 08:22:51.000000000 +0200
@@ -4838,8 +4838,10 @@
 				else{
 
 					/* rest of the output is perf data */
-					if(in_perf_data==TRUE)
+					if(in_perf_data==TRUE) {
 						dbuf_strcat(&db2,tempbuf);
+						dbuf_strcat(&db2," ");
+						}
 
 					/* we're still in long output */
 					else{
@@ -4856,8 +4858,10 @@
 								dbuf_strcat(&db1,ptr);
 
 								/* get the perf data */
-								if((ptr=my_strtok(NULL,"\n")))
+								if((ptr=my_strtok(NULL,"\n"))) {
 									dbuf_strcat(&db2,ptr);
+									dbuf_strcat(&db2," ");
+									}
 							        }
 
 							/* set the perf data flag */
