From 6c05739c62484dae8d5ed9fb0dfdb6590aacfe88 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 25 Sep 2013 13:48:24 +0300 Subject: improve a bit strings declaration. --- src/commands.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 680890b65..fc033cd83 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -1132,7 +1132,7 @@ impHandler(url) std::string url = args; if (!strStartWith(url, "http") && !strStartWith(url, "?")) url = "http://" + url; - std::string str = strprintf("[@@%s |%s@@]", url.c_str(), args.c_str()); + std::string str(strprintf("[@@%s |%s@@]", url.c_str(), args.c_str())); outStringNormal(tab, str, str); } } -- cgit v1.2.3-70-g09d2