check i not add, silly

This commit is contained in:
Monster Iestyn 2017-03-29 21:27:44 +01:00
parent 52a79754d3
commit 48777e60ed
1 changed files with 1 additions and 1 deletions

View File

@ -585,7 +585,7 @@ static const char *Newsnapshotfile(const char *pathname, const char *ext)
i += add * result;
if (add < 0 || add > 9999)
if (i < 0 || i > 9999)
return NULL;
}