diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2016-03-16 15:30:57 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2016-03-16 15:32:22 +0000 |
commit | 8d468c4c169a7519d5b172cc049b1d8cc7b1c343 (patch) | |
tree | 31317ff569439cf95eab611b4dda9b94f4319b0c /src/exim_monitor | |
parent | 6e3b198d9efa70de98409fbb78b9f83257b2101c (diff) | |
download | exim4-8d468c4c169a7519d5b172cc049b1d8cc7b1c343.tar.gz |
tidying: coverity issues
Diffstat (limited to 'src/exim_monitor')
-rw-r--r-- | src/exim_monitor/em_menu.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/exim_monitor/em_menu.c b/src/exim_monitor/em_menu.c index 6975e709d..81df0d37c 100644 --- a/src/exim_monitor/em_menu.c +++ b/src/exim_monitor/em_menu.c @@ -556,6 +556,7 @@ static void addrecipAction(Widget w, XtPointer client_data, XtPointer call_data) w = w; /* Keep picky compilers happy */ call_data = call_data; Ustrncpy(actioned_message, client_data, 24); +actioned_message[23] = '\0'; action_required = US"-Mar"; dialog_ref_widget = menushell; create_dialog(US"Recipient address to add?", US""); @@ -572,6 +573,7 @@ static void markdelAction(Widget w, XtPointer client_data, XtPointer call_data) w = w; /* Keep picky compilers happy */ call_data = call_data; Ustrncpy(actioned_message, client_data, 24); +actioned_message[23] = '\0'; action_required = US"-Mmd"; dialog_ref_widget = menushell; create_dialog(US"Recipient address to mark delivered?", US""); @@ -602,6 +604,7 @@ uschar *sender; w = w; /* Keep picky compilers happy */ call_data = call_data; Ustrncpy(actioned_message, client_data, 24); +actioned_message[23] = '\0'; q = find_queue(actioned_message, queue_noop, 0); sender = !q ? US"" : q->sender[0] == 0 ? US"<>" : q->sender; action_required = US"-Mes"; |