summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2015-11-13 08:42:30 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2015-11-13 08:42:30 (GMT)
commit7c0f9207a9e6e12b75454bcef622598a9b8d5ba1 (patch)
tree11d57e3c1a275fe5ad321aa7bc4aaae45af2bc48
parentf84d09bdd759fbee98108d0a097f322255fdf0e3 (diff)
parente93e78ae999879629f4db62379c05fd53ca4db57 (diff)
downloadtcl-7c0f9207a9e6e12b75454bcef622598a9b8d5ba1.zip
tcl-7c0f9207a9e6e12b75454bcef622598a9b8d5ba1.tar.gz
tcl-7c0f9207a9e6e12b75454bcef622598a9b8d5ba1.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.
-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);
}