Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Mon, 12 Jan 2015 00:48:47 -0500
From: Rich Felker <>
Subject: Re: Network error strings

On Mon, Jan 12, 2015 at 04:11:02PM +1100, Matthew Fernandez wrote:
> Hi all,
> In the file src/network/gai_strerror.c all error messages are terminated with an explicit NUL byte,
> except the last that has a NUL byte preceding it. Is this correct? I don't have a deep understanding
> of this code, so apologies if this is intentional. It just jumped out at me today as unusual.

Yes, it's intentional and it's simply how the advance/stop logic
works in the tiny loop in the actual code.


Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.