*/
#if defined(LIBC_SCCS) && !defined(lint)
-static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.13 2003/06/24 22:21:22 momjian Exp $";
+static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.14 2003/06/24 22:42:42 momjian Exp $";
#endif
#include "postgres.h"
if (!double_colon) {
if (bits < 128 - 32)
- cp += SPRINTF((cp, "::", bits));
+ cp += SPRINTF((cp, "::%d", bits));
else if (bits < 128 - 16)
- cp += SPRINTF((cp, ":0", bits));
+ cp += SPRINTF((cp, ":0%d", bits));
}
/* Format CIDR /width. */