apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <traw...@attglobal.net>
Subject Re: [PATCH] Add support for Unix domain sockets
Date Sat, 05 Jan 2002 14:13:19 GMT
Jeff Trawick <trawick@attglobal.net> writes:

> > > > +        sock->local_addr->addr_str_len = 108;
> > > 
> > > What about terminating '\0'?  Maybe it should be sizeof(sun_path) + 1?

I'm an idiot.  There has to be a terminating '\0' within sun_path so
we don't have to add 1.  But we do have to handle the fact that
sizeof(sun_path) isn't 108 on every system.

-- 
Jeff Trawick | trawick@attglobal.net | PGP public key at web site:
       http://www.geocities.com/SiliconValley/Park/9289/
             Born in Roswell... married an alien...

Mime
View raw message