diff options
author | Adam <Adam@anope.org> | 2011-03-30 23:59:57 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-03-30 23:59:57 -0400 |
commit | 8dec0c1f1798845a47914570869ed94ce44ce58d (patch) | |
tree | c2e016c51195c702f6fd08db91c45673dff3e3da /src/misc.cpp | |
parent | 8098ed899a3648897c0de925c974e21883a76b8d (diff) |
Fixed bug #1258, more Windows stuff, and more language strings
Diffstat (limited to 'src/misc.cpp')
-rw-r--r-- | src/misc.cpp | 4 |
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; } |