summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2015-11-13 08:46:06 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2015-11-13 08:46:06 (GMT)
commitdbcf61aa6e0b442a9d238557b5422cec9a9f4d31 (patch)
treede95c94ffdbf48e92bde9b9e3f30f489354e3eec /win
parentdd46b8caf61a4cb7034615322a390d4b287d299f (diff)
parente37ca228567043e53933582acbd2e19b732f820c (diff)
downloadtk-dbcf61aa6e0b442a9d238557b5422cec9a9f4d31.zip
tk-dbcf61aa6e0b442a9d238557b5422cec9a9f4d31.tar.gz
tk-dbcf61aa6e0b442a9d238557b5422cec9a9f4d31.tar.bz2
Fix [https://www.sqlite.org/src/info/34eb6911afee09e7|34eb6911af], taken over from SQLite: Fix uses of ctype functions (ex: isspace()) on signed characters in test programs and in some obscure extensions. No changes to the core.
Diffstat (limited to 'win')
-rw-r--r--win/nmakehlp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/win/nmakehlp.c b/win/nmakehlp.c
index b1a1517..84cf75c 100644
--- a/win/nmakehlp.c
+++ b/win/nmakehlp.c
@@ -606,8 +606,8 @@ SubstituteFile(
sp = fopen(substitutions, "rt");
if (sp != NULL) {
while (fgets(szBuffer, cbBuffer, sp) != NULL) {
- char *ks, *ke, *vs, *ve;
- ks = szBuffer;
+ unsigned char *ks, *ke, *vs, *ve;
+ ks = (unsigned char*)szBuffer;
while (ks && *ks && isspace(*ks)) ++ks;
ke = ks;
while (ke && *ke && !isspace(*ke)) ++ke;
@@ -616,7 +616,7 @@ SubstituteFile(
ve = vs;
while (ve && *ve && !(*ve == '\r' || *ve == '\n')) ++ve;
*ke = 0, *ve = 0;
- list_insert(&substPtr, ks, vs);
+ list_insert(&substPtr, (char*)ks, (char*)vs);
}
fclose(sp);
}