From: | Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org> |
Subject: | INET type and 00/0 |
Date: | 1999-05-25 03:57:50 |
Message-ID: | 199905250357.XAA02765@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Why is this line here, the size-- line? It does not appear in the
inet_cidr_ntop_ipv4() function. This is maybe the cause of our 00/0.
---------------------------------------------------------------------------
static char *
inet_net_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size)
{
char *odst = dst;
char *t;
size_t len = 4;
int b, tb;
if (bits < 0 || bits > 32)
{
errno = EINVAL;
return (NULL);
}
if (bits == 0)
{
if (size < sizeof "0")
goto emsgsize;
*dst++ = '0';
size--;
*dst = '\0';
}
--
Bruce Momjian | http://www.op.net/~candle
maillist(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Edmund Mergl | 1999-05-25 05:11:12 | Re: [HACKERS] strange behavior of UPDATE |
Previous Message | Bruce Momjian | 1999-05-25 03:34:47 | Re: [HACKERS] Open 6.5 items |