Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarUdp.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 20:23:44 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 20:23:44 +1000
commit332983c97b7a729c4dc5f19aa9ee4a22c420f7d8 (patch)
treefd9c441b796b522bdd5c7f8fbd32f51b8eff2a28 /source/core/StarUdp.cpp
parent14b9689b6d4f4ad5276c88130dc6e449bedc0709 (diff)
The Formatting String Catastrophe
Diffstat (limited to 'source/core/StarUdp.cpp')
-rw-r--r--source/core/StarUdp.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/core/StarUdp.cpp b/source/core/StarUdp.cpp
index 9ff7b48..c38da41 100644
--- a/source/core/StarUdp.cpp
+++ b/source/core/StarUdp.cpp
@@ -23,7 +23,7 @@ size_t UdpSocket::receive(HostAddressWithPort* address, char* data, size_t datas
else if (netErrorInterrupt())
len = 0;
else
- throw NetworkException(strf("udp recv error: %s", netErrorString()));
+ throw NetworkException(strf("udp recv error: {}", netErrorString()));
}
if (address)
@@ -47,7 +47,7 @@ size_t UdpSocket::send(HostAddressWithPort const& address, char const* data, siz
else if (netErrorInterrupt())
len = 0;
else
- throw NetworkException(strf("udp send error: %s", netErrorString()));
+ throw NetworkException(strf("udp send error: {}", netErrorString()));
}
return len;
@@ -57,7 +57,7 @@ UdpServer::UdpServer(HostAddressWithPort const& address)
: m_hostAddress(address), m_listenSocket(make_shared<UdpSocket>(m_hostAddress.address().mode())) {
m_listenSocket->setNonBlocking(true);
m_listenSocket->bind(m_hostAddress);
- Logger::debug("UdpServer listening on: %s", m_hostAddress);
+ Logger::debug("UdpServer listening on: {}", m_hostAddress);
}
UdpServer::~UdpServer() {