From 3287b5c75fa4f66e4d338ae1e2315a4f0754fa7d Mon Sep 17 00:00:00 2001 From: 3lswear Date: Mon, 7 Mar 2022 14:19:13 +0300 Subject: [PATCH] fix: logic error --- src/Client/Request.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Client/Request.cpp b/src/Client/Request.cpp index e17316a..92a3891 100644 --- a/src/Client/Request.cpp +++ b/src/Client/Request.cpp @@ -210,7 +210,7 @@ int checkEnd(const std::string& str, const std::string& end) { i--; j--; - if (i < 0 || str[i] != end[j]) + if (str[i] != end[j]) return (1); } return (0);