From 8c3a44ced1f4212993b2bdc048cef3cdbebb97c2 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Thu, 28 Sep 2006 20:44:35 +0000 Subject: [PATCH] - Fixed zlib version check: 1.x is compatible with all 1.*, etc. (#0002966). --- Changes | 1 + src/ircd.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changes b/Changes index fe42b6716..4709a8135 100644 --- a/Changes +++ b/Changes @@ -1382,3 +1382,4 @@ and Bock for tracing this down. - Fixed set::allowed-nickchars causing a segfault for some unknown charsets, rportered by avb (#0003069). +- Fixed zlib version check: 1.x is compatible with all 1.*, etc. (#0002966). diff --git a/src/ircd.c b/src/ircd.c index 997b662b1..ab684dfc0 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -907,7 +907,7 @@ static void do_version_check() #ifdef ZIP_LINKS runtime = zlibVersion(); compiledfor = ZLIB_VERSION; - if (strcasecmp(compiledfor, runtime)) + if (*compiledfor != *runtime) { version_check_logerror ("Zlib version mismatch: compiled for '%s', library is '%s'",