From 3902ab328e36a19a80f7a59c6e97eb8faad18cc7 Mon Sep 17 00:00:00 2001 From: aap Date: Thu, 25 Feb 2016 01:02:07 +0100 Subject: [PATCH] im an idiot --- src/rwbase.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rwbase.cpp b/src/rwbase.cpp index a00c084..cd1ebc8 100644 --- a/src/rwbase.cpp +++ b/src/rwbase.cpp @@ -78,6 +78,8 @@ strncmp_ci(const char *s1, const char *s2, int n) c2 = tolower(*s2); if(c1 != c2) return c1 - c2; + if(c1 == '\0') + return 0; s1++; s2++; }