mda_expand_format: simplify token name extraction for %{name}
authormillert <millert@openbsd.org>
Sun, 19 Mar 2023 16:43:44 +0000 (16:43 +0000)
committermillert <millert@openbsd.org>
Sun, 19 Mar 2023 16:43:44 +0000 (16:43 +0000)
commit9002671c0da110eccdf7487bb2d2911ba15db721
tree77c83d516485cbba409787dc05291c7163e90a24
parent9d8acff7f9551dacf0cf000c26ea43e1e75bfeb8
mda_expand_format: simplify token name extraction for %{name}
It is simpler to compute the length based on the start and end
pointers and pass that value to memcpy(), adding an explicit NUL
terminator after copying.  OK op@
usr.sbin/smtpd/mda_variables.c