summaryrefslogtreecommitdiff
path: root/src/misc.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-03-30 23:59:57 -0400
committerAdam <Adam@anope.org>2011-03-30 23:59:57 -0400
commit8dec0c1f1798845a47914570869ed94ce44ce58d (patch)
treec2e016c51195c702f6fd08db91c45673dff3e3da /src/misc.cpp
parent8098ed899a3648897c0de925c974e21883a76b8d (diff)
Fixed bug #1258, more Windows stuff, and more language strings
Diffstat (limited to 'src/misc.cpp')
-rw-r--r--src/misc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/misc.cpp b/src/misc.cpp
index edabe8f56..113dc059c 100644
--- a/src/misc.cpp
+++ b/src/misc.cpp
@@ -789,12 +789,12 @@ bool Anope::Match(const Anope::string &str, const Anope::string &mask, bool case
* @param ... any number of parameters
* @return a Anope::string
*/
-Anope::string Anope::printf(const Anope::string &fmt, ...)
+Anope::string Anope::printf(const char *fmt, ...)
{
va_list args;
char buf[1024];
va_start(args, fmt);
- vsnprintf(buf, sizeof(buf), fmt.c_str(), args);
+ vsnprintf(buf, sizeof(buf), fmt, args);
va_end(args);
return buf;
}