sources/network/bytestream.cpp

changeset 182
20ca0a6be175
parent 180
2e7225dbd9b2
child 183
9b6a0daedfc0
--- a/sources/network/bytestream.cpp	Wed Jan 27 13:17:11 2021 +0200
+++ b/sources/network/bytestream.cpp	Wed Jan 27 14:04:53 2021 +0200
@@ -50,7 +50,7 @@
 	{
 		int bytesPast = bytes - bytesLeft();
 		String message;
-		message.sprintf("attempted to read %d byte%s past the end of bytestream", bytesPast, plural(bytesPast));
+		message = sprintf("attempted to read %d byte%s past the end of bytestream", bytesPast, plural(bytesPast));
 		throw IOError (message);
 	}
 }

mercurial