On Fri, 2008-04-25 at 15:01 -0700, Roy T. Fielding wrote:
> On Apr 25, 2008, at 2:52 PM, [EMAIL PROTECTED] wrote:
>
> > ======================================================================
> > ========
> > --- apr/apr/trunk/file_io/unix/copy.c (original)
> > +++ apr/apr/trunk/file_io/unix/copy.c Fri Apr 25 14:52:36 2008
> > @@ -54,7 +54,8 @@
> >
> > /* Copy bytes till the cows come home. */
> > while (1) {
> > - char buf[APR_BUFSIZ];
> > + char buf[BUFSIZ > APR_FILE_DEFAULT_BUFSIZE ? BUFSIZ
> > + :
> > APR_FILE_DEFAULT_BUFSIZE];
>
> I'm not sure that is portable C. Is the compiler guaranteed to
> optimize that
> into a constant?
I would think so. BUFSIZ is defined as constant, as well as
APR_FILE_DEFAULT_SIZE. But, I'll check again...
--
Bojan