]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Workaround AIX 3.x compiler bug.
authorMarc Slemko <marc@apache.org>
Mon, 30 Jun 1997 00:02:01 +0000 (00:02 +0000)
committerMarc Slemko <marc@apache.org>
Mon, 30 Jun 1997 00:02:01 +0000 (00:02 +0000)
PR: 725
Reviewed by: Dean Gaudet, Jim Jagielski
Submitted by:
Obtained from:

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/1.3@78463 13f79535-47bb-0310-9956-ffa450edef68

APACHE_1_2_X/src/CHANGES
APACHE_1_2_X/src/main/http_bprintf.c

index 972c6ae4dff4fce4f5378212733305e91db22456..3ddd2d19ec2d80434b43570efd1999ff4ffffc2b 100644 (file)
@@ -91,6 +91,9 @@ Changes with Apache 1.2.1
 
   *) PORT: Support for Maxion/OS SVR4.2 Real Time Unix. [no name given] PR#383
 
+  *) PORT: Workaround for AIX 3.x compiler bug in http_bprintf.c.  
+     [Marc Slemko] PR#725
+
 Changes with Apache 1.2
 
 Changes with Apache 1.2b11
index 712af066883d679e7ca0e23319f9cedfcc6bf3b2..3035b759ccf6df92b81172de6c98f9b979927ebc 100644 (file)
@@ -289,7 +289,10 @@ int vbprintf(BUFF *bp, const char *format, va_list arg)
                    else
                        {
                        p = memchr(charPtrArg, '\0', precision);
-                       buffReqd=(p == NULL) ? precision : p - charPtrArg;
+                       if (p == NULL)
+                               buffReqd = precision;
+                       else
+                               buffReqd = p - charPtrArg;
                        }
                    break;