--- src/dotd.c.orig	2009-09-16 20:45:11.000000000 -0400
+++ src/dotd.c	2009-09-01 08:59:58.000000000 -0400
@@ -18,6 +18,8 @@
  * USA.
  */
 
+#include <config.h>
+
 #include <stdio.h>
 #include <string.h>
 #include <stdlib.h>
--- src/emaillog.c.orig	2009-09-16 20:45:30.000000000 -0400
+++ src/emaillog.c	2009-09-01 08:59:58.000000000 -0400
@@ -18,6 +18,8 @@
  * USA.
  */
 
+#include <config.h>
+
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <errno.h>
@@ -120,7 +122,7 @@
   asprintf(&will_send_message_to, will_send_message_format, whom_to_blame);
   asprintf(&cant_send_message_to, cant_send_message_format, whom_to_blame);
 
-  rs_log_warning(will_send_message_to);
+  rs_log_warning("%s", will_send_message_to);
   free(will_send_message_to);
 
   if (email_fileno < 0) {
