summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOssama Othman <ossama-othman@users.noreply.github.com>1999-07-16 21:43:11 +0000
committerOssama Othman <ossama-othman@users.noreply.github.com>1999-07-16 21:43:11 +0000
commitc64fe8c4ce0857eb2918b29e8eaf7f88d81fad24 (patch)
treeaa0987e264103f170dcf99d0c120add47b93a9d5
parent7aff2f88548fa92530dd8ec502005b36c468047e (diff)
downloadATCD-c64fe8c4ce0857eb2918b29e8eaf7f88d81fad24.tar.gz
Fixed format specifier that was expecting an integer argument.
It needed an additional percent specifier.
-rw-r--r--ace/Stats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ace/Stats.cpp b/ace/Stats.cpp
index b025ba2e616..2b4cfbc207c 100644
--- a/ace/Stats.cpp
+++ b/ace/Stats.cpp
@@ -222,7 +222,7 @@ ACE_Stats::print_summary (const u_int precision,
// Build a format string, in case the C library doesn't support %*u.
ASYS_TCHAR format[32];
if (tmp_precision == 0)
- ACE_OS::sprintf (format, ASYS_TEXT ("%%d"), tmp_precision);
+ ACE_OS::sprintf (format, ASYS_TEXT ("%%%d"), tmp_precision);
else
ACE_OS::sprintf (format, ASYS_TEXT ("%%d.%%0%du"), tmp_precision);