diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2012-10-01 12:36:56 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2012-10-01 12:36:56 (GMT) |
| commit | 58763f090043be8709addc9a7ac33aeaab591d7c (patch) | |
| tree | 8cf17f928a006afe1ef4a6d056dd5dedad95db3f /src/client/Client.cpp | |
| parent | c0c5717efec4d2436869e0643ab00431b35893a0 (diff) | |
| download | powder-58763f090043be8709addc9a7ac33aeaab591d7c.zip powder-58763f090043be8709addc9a7ac33aeaab591d7c.tar.gz | |
Fix stamp library loading issue (wasn't loading beyond 512 bytes, readsome doesn't always reach eof before not reading n
Diffstat (limited to 'src/client/Client.cpp')
| -rw-r--r-- | src/client/Client.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/client/Client.cpp b/src/client/Client.cpp index 0353d0e..238c216 100644 --- a/src/client/Client.cpp +++ b/src/client/Client.cpp @@ -127,12 +127,11 @@ void Client::Initialise(std::string proxyString) //Read stamps library std::ifstream stampsLib; stampsLib.open(STAMPS_DIR PATH_SEP "stamps.def", std::ios::binary); - while(true) + while(!stampsLib.eof()) { char data[11]; memset(data, 0, 11); - if(stampsLib.readsome(data, 10)!=10) - break; + stampsLib.read(data, 10); if(!data[0]) break; stampIDs.push_back(data); |
