You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-cvs@httpd.apache.org by jo...@apache.org on 2007/06/10 06:04:35 UTC

svn commit: r545836 - /httpd/apreq/trunk/library/t/at.h

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);
         }
     }