sources/network/udpsocket.cpp

changeset 31
b5b5a6a96d91
parent 19
2046a1651c0b
child 56
b4caacf567af
--- a/sources/network/udpsocket.cpp	Mon Dec 15 02:15:09 2014 +0200
+++ b/sources/network/udpsocket.cpp	Mon Dec 15 03:09:26 2014 +0200
@@ -98,7 +98,7 @@
 	if (length == -1)
 	{
 		if (errno != EWOULDBLOCK)
-			m_error.sprintf ("recvfrom error: %s", strerror (errno));
+			m_error = String ("recvfrom error: ") + strerror (errno);
 
 		return false;
 	}

mercurial