]> git.ipfire.org Git - thirdparty/iptables.git/commitdiff
Fix '-L format bug' (Edward J. Huff) (Closes: #93)
authorHarald Welte <laforge@gnumonks.org>
Sat, 31 May 2003 21:30:33 +0000 (21:30 +0000)
committerHarald Welte <laforge@gnumonks.org>
Sat, 31 May 2003 21:30:33 +0000 (21:30 +0000)
iptables.c

index 67d30c91b5aa4571f0637a4c918b5a4137436540..21c9e49d8e2e220af51186f10c9749f153a7c5cb 100644 (file)
@@ -1254,14 +1254,14 @@ print_firewall(const struct ipt_entry *fw,
 
        fputc(fw->ip.invflags & IPT_INV_DSTIP ? '!' : ' ', stdout);
        if (fw->ip.dmsk.s_addr == 0L && !(format & FMT_NUMERIC))
-               printf(FMT("%-19s","-> %s"), "anywhere");
+               printf(FMT("%-19s ","-> %s"), "anywhere");
        else {
                if (format & FMT_NUMERIC)
                        sprintf(buf, "%s", addr_to_dotted(&(fw->ip.dst)));
                else
                        sprintf(buf, "%s", addr_to_anyname(&(fw->ip.dst)));
                strcat(buf, mask_to_dotted(&(fw->ip.dmsk)));
-               printf(FMT("%-19s","-> %s"), buf);
+               printf(FMT("%-19s ","-> %s"), buf);
        }
 
        if (format & FMT_NOTABLE)