From 48777e60ed8a13aaa397279b683979f9dd462a1f Mon Sep 17 00:00:00 2001
From: Monster Iestyn <iestynjealous@ntlworld.com>
Date: Wed, 29 Mar 2017 21:27:44 +0100
Subject: [PATCH] check i not add, silly

---
 src/m_misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/m_misc.c b/src/m_misc.c
index cfe73d88fa..d88643ec46 100644
--- a/src/m_misc.c
+++ b/src/m_misc.c
@@ -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;
 	}
 
-- 
GitLab