[Xcb] Get rid of PATH_MAX and MAXPATHLEN

Peter Harris git at peter.is-a-geek.org
Tue Apr 27 05:16:05 PDT 2010


On Tue, Apr 27, 2010 at 5:53 AM, Arnaud Fontaine wrote:
>
> I have  attached to  this email  the final patch.   It sets  the initial
> sockname size (excluding the sizeof(struct sockaddr)) to a more sensible
> value (namely 108) as it usually  ranges between 92 and 108 according to
> POSIX.  It also  gets  rid of  the  while loop  which  was clearly  ugly
> ;). Hope that's ok.

Thanks for working on this.

Unfortunately, I don't think this is quite the final patch yet. When
you changed the while() to an if(), you forgot to call func() again
after the realloc is successful.

Peter Harris


More information about the Xcb mailing list