X-Git-Url: https://git.exim.org/exim.git/blobdiff_plain/1145b1aea70658de9f7f85b03772bc06408c027a..260dba101f31de6ba6313c30fc8293a8ad4b4d94:/src/exim_monitor/em_queue.c?ds=inline 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;