INET type and 00/0

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема INET type and 00/0
Дата
Msg-id 199905250357.XAA02765@candle.pha.pa.us
обсуждение исходный текст
Список 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@candle.pha.pa.us            |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [HACKERS] Open 6.5 items
Следующее
От: maillist@candle.pha.pa.us (Bruce Momjian)
Дата:
Сообщение: Re: [HACKERS] Open 6.5 items