From 1834845f2c19d89d09d46b83760bfb18676274e6 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Tue, 12 Dec 2006 17:00:02 +0000 Subject: Remove excess no-op strcpy() after strdup() found by Andreas Krennmair. svn path=/branches/BRANCH_6-3/; revision=4989 --- NEWS | 3 +++ sink.c | 1 - 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 40e13eb5..ccf5e70f 100644 --- a/NEWS +++ b/NEWS @@ -88,6 +88,9 @@ fetchmail 6.3.6 (not yet released): * Fix crash on systems that do not provide strdup() in out-of-memory conditions. Patch by Andreas Krennmair. +# CHANGES: +* Remove excess no-op strcpy() after strdup() found by Andreas Krennmair. + # TRANSLATIONS: * New en_GB (British English) translation by David Lodge. * Update Japanese (Takeshi Hamasaki), Polish (Jakub Bogusz), Russian (Pavel diff --git a/sink.c b/sink.c index e2d8c7a7..92477ef9 100644 --- a/sink.c +++ b/sink.c @@ -957,7 +957,6 @@ transient: case PS_SUCCESS: #ifdef EXPLICIT_BOUNCE_ON_BAD_ADDRESS from_responses[*bad_addresses] = xstrdup(smtp_response); - strcpy(from_responses[*bad_addresses], smtp_response); #endif /* EXPLICIT_BOUNCE_ON_BAD_ADDRESS */ (*bad_addresses)++; -- cgit v1.2.3