Uncomment bounds checking for stamp loading

This commit is contained in:
Simon Robertshaw 2012-06-10 19:53:46 +01:00
parent fd572e9da6
commit 5eb9370fc1

View File

@ -328,11 +328,11 @@ int Client::GetStampsCount()
vector<string> Client::GetStamps(int start, int count)
{
//if(start+count > stampIDs.size()) {
// if(start > stampIDs.size())
// return vector<string>();
// count = stampIDs.size()-start;
//}
if(start+count > stampIDs.size()) {
if(start > stampIDs.size())
return vector<string>();
count = stampIDs.size()-start;
}
vector<string> stampRange;
int index = 0;