From: Thomas Haller Date: Tue, 23 Apr 2019 07:16:12 +0000 (+0200) Subject: iprule: avoid printing extra space after gateway for nat action X-Git-Tag: v5.1.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f87b544ca9e632f6ed606db299e2d74b17be9b3;p=thirdparty%2Fiproute2.git iprule: avoid printing extra space after gateway for nat action For all other actions we avoid the trailing space, so do it here as well. Signed-off-by: Thomas Haller Signed-off-by: Stephen Hemminger --- diff --git a/ip/iprule.c b/ip/iprule.c index 83aef38e0..2479c3abb 100644 --- a/ip/iprule.c +++ b/ip/iprule.c @@ -443,7 +443,7 @@ int print_rule(struct nlmsghdr *n, void *arg) gateway = format_host_rta(frh->family, tb[RTA_GATEWAY]); print_string(PRINT_ANY, "nat_gateway", - "map-to %s ", gateway); + "map-to %s", gateway); } else { print_null(PRINT_ANY, "masquerade", "masquerade", NULL); }