fix possible oob access

svn-id: r32799
This commit is contained in:
Gregory Montoir 2008-06-26 10:12:47 +00:00
parent b6adcca897
commit 358d2ec44a

View File

@ -106,7 +106,7 @@ ResourceEntry *Resource::resourceEntry(const char *filename) const {
re = &_resourceTable[cur];
break;
}
} while (cur++ < _resourceEntries);
} while (++cur < _resourceEntries);
#endif
return re;
}