File nagios-fix_spurious_dollar_signs_added_to_command_lines.patch of Package nagios.import4839

Index: common/macros.c
===================================================================
--- common/macros.c.orig
+++ common/macros.c
@@ -198,7 +198,8 @@
 				*output_buffer=(char *)realloc(*output_buffer,strlen(*output_buffer)+strlen(temp_buffer)+3);
 				strcat(*output_buffer,"$");
 				strcat(*output_buffer,temp_buffer);
-				strcat(*output_buffer,"$");
+				if (buf_ptr!=NULL)
+					strcat(*output_buffer,"$");
 				}
 
 			/* insert macro */
openSUSE Build Service is sponsored by