summaryrefslogtreecommitdiffstats
path: root/lib/Utils/CommLayerInner.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Utils/CommLayerInner.cpp')
-rw-r--r--lib/Utils/CommLayerInner.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Utils/CommLayerInner.cpp b/lib/Utils/CommLayerInner.cpp
index b5b8db7..8490e2f 100644
--- a/lib/Utils/CommLayerInner.cpp
+++ b/lib/Utils/CommLayerInner.cpp
@@ -45,7 +45,7 @@ void warn_client(const std::string& pMessage)
pthread_mutex_unlock(&s_map_mutex);
if (peer)
- s_pObs->Warning(pMessage, peer, key);
+ s_pObs->Warning(pMessage.c_str(), peer, key);
else /* Bug: someone tries to warn_client() without set_client_name()!? */
log("Hmm, stray %s: '%s'", __func__, pMessage.c_str());
}
@@ -63,7 +63,7 @@ void update_client(const std::string& pMessage)
pthread_mutex_unlock(&s_map_mutex);
if (peer)
- s_pObs->Status(pMessage, peer, key);
+ s_pObs->Status(pMessage.c_str(), peer, key);
else
log("Hmm, stray %s: '%s'", __func__, pMessage.c_str());
}