diff options
author | laforge <laforge> | 2003-05-31 21:30:33 +0000 |
---|---|---|
committer | laforge <laforge> | 2003-05-31 21:30:33 +0000 |
commit | 4653379ac6ccab88b75b70e86a20ef5a48811a95 (patch) | |
tree | afe09a9c8d0da4971476edbadbbe3698454e5ebc /iptables.c | |
parent | 6a16883400e51376108a32042b645bfff16e7120 (diff) |
Fix '-L format bug' (Edward J. Huff) (Closes: #93)
Diffstat (limited to 'iptables.c')
-rw-r--r-- | iptables.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) |