aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/DccCanvasWindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/dcc/DccCanvasWindow.cpp')
-rw-r--r--src/modules/dcc/DccCanvasWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/dcc/DccCanvasWindow.cpp b/src/modules/dcc/DccCanvasWindow.cpp
index e2adee2a4..a923d23d5 100644
--- a/src/modules/dcc/DccCanvasWindow.cpp
+++ b/src/modules/dcc/DccCanvasWindow.cpp
@@ -134,7 +134,7 @@ DccCanvasWindow::~DccCanvasWindow()
const QString & DccCanvasWindow::target()
{
// This may change on the fly...
- m_szTarget.sprintf("%s@%s:%s",
+ m_szTarget = QString::asprintf("%s@%s:%s",
m_pDescriptor->szNick.toUtf8().data(), m_pDescriptor->szIp.toUtf8().data(), m_pDescriptor->szPort.toUtf8().data());
return m_szTarget;
}