httpd-apreq-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject svn commit: r545836 - /httpd/apreq/trunk/library/t/at.h
Date Sun, 10 Jun 2007 04:04:35 GMT
Author: joes
Date: Sat Jun  9 21:04:34 2007
New Revision: 545836

URL: http://svn.apache.org/viewvc?view=rev&rev=545836
Log:
Fix at_check so it properly reports
left and right side values. Without
this fix it would only report the
left hand value twice, because va_list
is a struct, not a pointer to one.

Modified:
    httpd/apreq/trunk/library/t/at.h

Modified: httpd/apreq/trunk/library/t/at.h
URL: http://svn.apache.org/viewvc/httpd/apreq/trunk/library/t/at.h?view=diff&rev=545836&r1=545835&r2=545836
==============================================================================
--- httpd/apreq/trunk/library/t/at.h (original)
+++ httpd/apreq/trunk/library/t/at.h Sat Jun  9 21:04:34 2007
@@ -153,11 +153,12 @@
         at_trace(t, format, label, file, line);
 
         if (fmt != NULL) {
+            char *f;
             apr_snprintf(format, sizeof format, " format: %s", fmt);
             at_trace(t, "%s", format);
             memcpy(format, "   left:", 8);
-            at_comment(t, format, vp);
-            memcpy(format, "  right:", 8);
+            f = format + strlen(format);
+            apr_snprintf(f, sizeof format - strlen(format), "\n  right: %s", fmt);
             at_comment(t, format, vp);
         }
     }



Mime
View raw message