Fix taint trap in parse_fix_phrase(). Bug 2617
[exim.git] / src / src / exim.c
index dde99106501a25e9dd07da954b7c9860ec05cdd7..ac0ff552317bc14a7bb5c88962737b6509e19733 100644 (file)
@@ -4769,8 +4769,7 @@ if (originator_login == NULL || f.running_in_test_harness)
 /* Ensure that the user name is in a suitable form for use as a "phrase" in an
 RFC822 address.*/
 
-originator_name = string_copy(parse_fix_phrase(originator_name,
-  Ustrlen(originator_name), big_buffer, big_buffer_size));
+originator_name = parse_fix_phrase(originator_name, Ustrlen(originator_name));
 
 /* If a message is created by this call of Exim, the uid/gid of its originator
 are those of the caller. These values are overridden if an existing message is