[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apreq-cvs
Subject:    svn commit: r545836 - /httpd/apreq/trunk/library/t/at.h
From:       joes () apache ! org
Date:       2007-06-10 4:04:35
Message-ID: 20070610040435.936051A981A () eris ! apache ! org
[Download RAW message or body]

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic