From e30f4f43de211b14bd405a3d0e1579b9bd814908 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Sat, 20 Oct 2018 21:03:30 +0100 Subject: Fix bad use of library, copying string over itself --- src/src/deliver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/src/deliver.c b/src/src/deliver.c index 6c6e6f7d1..4624719f8 100644 --- a/src/src/deliver.c +++ b/src/src/deliver.c @@ -5586,7 +5586,8 @@ message size. This use of strcpy() is OK because the length id is checked when it is obtained from a command line (the -M or -q options), and otherwise it is known to be a valid message id. */ -Ustrcpy(message_id, id); +if (id != message_id) + Ustrcpy(message_id, id); f.deliver_force = forced; return_count = 0; message_size = 0; -- cgit v1.2.3