From 74db8adfbc5e136b55d2f5ea54d49f67b15d7fea Mon Sep 17 00:00:00 2001 From: Ali Saidi Date: Mon, 12 Mar 2007 20:16:13 -0400 Subject: [PATCH] call ccprintf() with the appropriate argument types so we don't recuse forever --HG-- extra : convert_revision : 5366be897d1193cf9e93b1fcd0689d19783f73a8 --- src/base/cprintf.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/base/cprintf.hh b/src/base/cprintf.hh index 7f8e33367..cff73a228 100644 --- a/src/base/cprintf.hh +++ b/src/base/cprintf.hh @@ -143,20 +143,20 @@ ccprintf(std::ostream &stream, const std::string &format, inline void ccprintf(std::ostream &stream, const std::string &format, CPRINTF_DECLARATION) { - ccprintf(stream, format, VARARGS_ALLARGS); + ccprintf(stream, format.c_str(), VARARGS_ALLARGS); } inline void cprintf(const std::string &format, CPRINTF_DECLARATION) { - ccprintf(std::cout, format, VARARGS_ALLARGS); + ccprintf(std::cout, format.c_str(), VARARGS_ALLARGS); } inline std::string csprintf(const std::string &format, CPRINTF_DECLARATION) { std::stringstream stream; - ccprintf(stream, format, VARARGS_ALLARGS); + ccprintf(stream, format.c_str(), VARARGS_ALLARGS); return stream.str(); } -- 2.30.2