diff options
-rw-r--r-- | lib/tsocket/tsocket_bsd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tsocket/tsocket_bsd.c b/lib/tsocket/tsocket_bsd.c index 4417f8e045..fe39dfd540 100644 --- a/lib/tsocket/tsocket_bsd.c +++ b/lib/tsocket/tsocket_bsd.c @@ -389,7 +389,7 @@ int _tsocket_address_inet_from_strings(TALLOC_CTX *mem_ctx, return -1; } - snprintf(port_str, sizeof(port_str) - 1, "%u", port); + snprintf(port_str, sizeof(port_str), "%u", port); ret = getaddrinfo(addr, port_str, &hints, &result); if (ret != 0) { |