Blame SOURCES/0003-Fix-off-by-one-error-in-chmd-TOLOWER-fallback.patch

7c6846
From 8d40fbabead00847199af114fdc91f3f9a1ab397 Mon Sep 17 00:00:00 2001
7c6846
From: Stuart Caie <kyzer@cabextract.org.uk>
7c6846
Date: Tue, 6 Feb 2018 23:17:30 +0000
7c6846
Subject: [PATCH 3/3] Fix off-by-one error in chmd TOLOWER() fallback
7c6846
7c6846
(cherry picked from commit 4fd9ccaa54e1aebde1e4b95fb0163b699fd7bcc8)
7c6846
---
7c6846
 libmspack/trunk/mspack/chmd.c | 2 +-
7c6846
 1 file changed, 1 insertion(+), 1 deletion(-)
7c6846
7c6846
diff --git a/libmspack/trunk/mspack/chmd.c b/libmspack/trunk/mspack/chmd.c
7c6846
index b799154..cea9fc2 100644
7c6846
--- a/libmspack/trunk/mspack/chmd.c
7c6846
+++ b/libmspack/trunk/mspack/chmd.c
7c6846
@@ -834,7 +834,7 @@ static int search_chunk(struct mschmd_header *chm,
7c6846
 # endif
7c6846
 # define TOLOWER(x) tolower(x)
7c6846
 #else
7c6846
-# define TOLOWER(x) (((x)<0||(x)>256)?(x):mspack_tolower_map[(x)])
7c6846
+# define TOLOWER(x) (((x)<0||(x)>255)?(x):mspack_tolower_map[(x)])
7c6846
 /* Map of char -> lowercase char for the first 256 chars. Generated with:
7c6846
  * LC_CTYPE=en_GB.utf-8 perl -Mlocale -le 'print map{ord(lc chr).","} 0..255'
7c6846
  */
7c6846
-- 
7c6846
2.18.0
7c6846