diff options
| author | Robert Drehmel <robert@FreeBSD.org> | 2003-05-09 09:11:27 +0000 |
|---|---|---|
| committer | Robert Drehmel <robert@FreeBSD.org> | 2003-05-09 09:11:27 +0000 |
| commit | 9efed1e6e238237afa49d80cb94f720c76c69e3e (patch) | |
| tree | fabaaa6fba775cbc9fcb9f398345133335c38a7a /usr.bin/sockstat | |
| parent | e1519c7c55e5f349dd54fc07da8d929734b87ed9 (diff) | |
Notes
Diffstat (limited to 'usr.bin/sockstat')
| -rw-r--r-- | usr.bin/sockstat/sockstat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c index e6c7c26e6313..1212be10fa7a 100644 --- a/usr.bin/sockstat/sockstat.c +++ b/usr.bin/sockstat/sockstat.c @@ -111,7 +111,7 @@ parse_ports(const char *portspec) int port, end; if (ports == NULL) - if ((ports = calloc(1, 65536 / INT_BIT)) == NULL) + if ((ports = calloc(65536 / INT_BIT, sizeof(int))) == NULL) err(1, "calloc()"); p = portspec; while (*p != '\0') { |
