sources/network/bytestream.cpp

changeset 182
20ca0a6be175
parent 180
2e7225dbd9b2
child 183
9b6a0daedfc0
equal deleted inserted replaced
181:e254398fcc7c 182:20ca0a6be175
48 { 48 {
49 if (bytesLeft() < bytes) 49 if (bytesLeft() < bytes)
50 { 50 {
51 int bytesPast = bytes - bytesLeft(); 51 int bytesPast = bytes - bytesLeft();
52 String message; 52 String message;
53 message.sprintf("attempted to read %d byte%s past the end of bytestream", bytesPast, plural(bytesPast)); 53 message = sprintf("attempted to read %d byte%s past the end of bytestream", bytesPast, plural(bytesPast));
54 throw IOError (message); 54 throw IOError (message);
55 } 55 }
56 } 56 }
57 57
58 /*! 58 /*!

mercurial