trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bc...@apache.org
Subject svn commit: r916494 - /incubator/trafficserver/traffic/trunk/libinktomi++/ink_snprintf.cc
Date Thu, 25 Feb 2010 23:36:31 GMT
Author: bcall
Date: Thu Feb 25 23:36:30 2010
New Revision: 916494

URL: http://svn.apache.org/viewvc?rev=916494&view=rev
Log:
TS-204 Fixed a problem with ink_sprintf() not writing to buffer
because it was calling ink_vsnprintf() with a zero length size of the
buffer.  The problem was showing up in output of traffic_line.
Reviewed: George Paul

Modified:
    incubator/trafficserver/traffic/trunk/libinktomi++/ink_snprintf.cc

Modified: incubator/trafficserver/traffic/trunk/libinktomi++/ink_snprintf.cc
URL: http://svn.apache.org/viewvc/incubator/trafficserver/traffic/trunk/libinktomi%2B%2B/ink_snprintf.cc?rev=916494&r1=916493&r2=916494&view=diff
==============================================================================
--- incubator/trafficserver/traffic/trunk/libinktomi++/ink_snprintf.cc (original)
+++ incubator/trafficserver/traffic/trunk/libinktomi++/ink_snprintf.cc Thu Feb 25 23:36:30
2010
@@ -63,7 +63,7 @@
 int
 ink_vsprintf(char *str, const char *fmt, va_list args)
 {
-  return ink_vsnprintf(str, 0, fmt, args);
+  return vsprintf(str, fmt, args);
 }
 
 int
@@ -75,7 +75,7 @@
   VA_SHIFT(str, char *);
   VA_SHIFT(count, size_t);
   VA_SHIFT(fmt, char *);
-  int len = str ? ink_vsnprintf(str, 0, fmt, ap) : 0;
+  int len = str ? ink_vsprintf(str, fmt, ap) : 0;
 
   va_end(ap);
   return (len);



Mime
View raw message