You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Marc Slemko <ma...@znep.com> on 1997/06/29 23:04:44 UTC
[PATCH] AIX 3.x and http_bprintf.c
http_bprintf.c doesn't compile on AIX 3.x using IBM's compiler because it
is broken. The following change works around it.
It is a bogus change to have to make, but...
There have been several PRs on it. For both HEAD and 1.2.
Index: http_bprintf.c
===================================================================
RCS file: /export/home/cvs/apache/src/http_bprintf.c,v
retrieving revision 1.9
diff -c -r1.9 http_bprintf.c
*** http_bprintf.c 1997/06/29 19:19:35 1.9
--- http_bprintf.c 1997/06/29 21:00:57
***************
*** 286,292 ****
else
{
p = memchr(charPtrArg, '\0', precision);
! buffReqd=(p == NULL) ? precision : p - charPtrArg;
}
break;
--- 286,295 ----
else
{
p = memchr(charPtrArg, '\0', precision);
! if (p == NULL)
! buffReqd = precision;
! else
! buffReqd = p - charPtrArg;
}
break;
Re: [PATCH] AIX 3.x and http_bprintf.c
Posted by Dean Gaudet <dg...@arctic.org>.
+1 for HEAD and 1.2.
Dean
On Sun, 29 Jun 1997, Marc Slemko wrote:
> http_bprintf.c doesn't compile on AIX 3.x using IBM's compiler because it
> is broken. The following change works around it.
>
> It is a bogus change to have to make, but...
>
> There have been several PRs on it. For both HEAD and 1.2.
>
> Index: http_bprintf.c
> ===================================================================
> RCS file: /export/home/cvs/apache/src/http_bprintf.c,v
> retrieving revision 1.9
> diff -c -r1.9 http_bprintf.c
> *** http_bprintf.c 1997/06/29 19:19:35 1.9
> --- http_bprintf.c 1997/06/29 21:00:57
> ***************
> *** 286,292 ****
> else
> {
> p = memchr(charPtrArg, '\0', precision);
> ! buffReqd=(p == NULL) ? precision : p - charPtrArg;
> }
> break;
>
> --- 286,295 ----
> else
> {
> p = memchr(charPtrArg, '\0', precision);
> ! if (p == NULL)
> ! buffReqd = precision;
> ! else
> ! buffReqd = p - charPtrArg;
> }
> break;
>
>
>