Skip to content

Commit

Permalink
prevent queryfile overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
raybellis committed Feb 20, 2020
1 parent d4f53be commit cb0c4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion queryfile.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class QueryFile {
public:

const Record& operator[](size_t n) const {
return queries[n];
return queries[n % size()];
};

size_t size() const {
Expand Down

0 comments on commit cb0c4a9

Please sign in to comment.