On Sat, Jun 17, 2006 at 04:30:25PM +0200, Jarek KamiƄski wrote:
> > --- dhttpd-1.02a.old/src/config.hh  2006-06-17 11:21:50.000000000 +0200
> > +++ dhttpd-1.02a/src/config.hh      2006-06-17 11:35:45.791883896 +0200
> > @@ -11,6 +11,9 @@
> >   * root, you must use a value >= 1024, such as 8080.             */
> >  #define DEFAULTPORT        80
> >  
> > +/* Set default address to listen to.  (0.0.0.0 for any)          */
> > +#define DEFAULTBINDADDR "0.0.0.0"
> > +
> >  /* This is the directory where the web pages are located.        */
> >  /* Note:  buffer overflow problems may exist if WEBDIRPREFIX is  *
> >   * longer than 150 characters or so.                             */
> > diff -ur dhttpd-1.02a.old/src/main.cc dhttpd-1.02a/src/main.cc
> > --- dhttpd-1.02a.old/src/main.cc    2006-06-17 11:21:50.000000000 +0200
> > +++ dhttpd-1.02a/src/main.cc        2006-06-17 11:41:51.657263904 +0200
> > @@ -99,11 +99,12 @@
> [...]
> > +                           printf( "  -b         Bind to this address 
> > instead of ", DEFAULTBINDADDR, "\n" );
> This line is wrong, should be
>                               printf( "  -b         Bind to this address 
> instead of %s\n", DEFAULTBINDADDR );

Either works.  On the first, gcc concatenates the strings at build time, so that
printf only gets one argument.  Not really relevant, anyway :)

-- 
Robert Millan


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to