chiark / gitweb /
put a missing ntohs back
[authbind.git] / helper.c
index 77456c1b62b03528793657361d57cc3d9d1bf8cd..cc4efe25ce7652c8bf4c8db3c751157ffcec85ea 100644 (file)
--- a/helper.c
+++ b/helper.c
@@ -134,7 +134,7 @@ int main(int argc, const char *const *argv) {
   if (errno != ENOENT) exiterrno(errno);
 
   char npbuf[INET_ADDRSTRLEN + INET6_ADDRSTRLEN];
-  np= inet_ntop(af,addr_any,npbuf,addrlen_any);
+  np= inet_ntop(af,addr_any,npbuf,sizeof(npbuf));
   assert(np);
 
   if (af == AF_INET) {