DMARC: expand main-config options. Bug 3102
[exim.git] / src / exim_monitor / em_queue.c
index 892b4f8561daba6d8f2a9becb6e5eaaf7d21e0d9..c20f238fdbdd7c9d1a6c3e894990ae7a820e4743 100644 (file)
@@ -163,7 +163,8 @@ uschar buffer[256];
 
 q->next = q->prev = NULL;
 q->destinations = NULL;
-Ustrncpy(q->name, name, sizeof(q->name));
+Ustrncpy(q->name, name, sizeof(q->name)-1);
+q->name[sizeof(q->name)-1] = '\0';
 q->seen = TRUE;
 q->frozen = FALSE;
 q->dir_char = dir_char;