X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/1145b1aea70658de9f7f85b03772bc06408c027a..b4a88d7a067354abbe93c7c32264f31d1e461123:/src/exim_monitor/em_queue.c diff --git a/src/exim_monitor/em_queue.c b/src/exim_monitor/em_queue.c index 892b4f856..c20f238fd 100644 --- a/src/exim_monitor/em_queue.c +++ b/src/exim_monitor/em_queue.c @@ -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;