diff --git a/src/sbbs3/sbbscon.c b/src/sbbs3/sbbscon.c
index 95d632ac2ee9ba225293ef1a4d5e276743ad1178..0deef7d552b86a6c5b879baddd79f7390da168c9 100644
--- a/src/sbbs3/sbbscon.c
+++ b/src/sbbs3/sbbscon.c
@@ -8,7 +8,7 @@
  * @format.tab-size 4		(Plain Text/Source Code File Header)			*
  * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
  *																			*
- * Copyright 2009 Rob Swindell - http://www.synchro.net/copyright.html		*
+ * Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html		*
  *																			*
  * This program is free software; you can redistribute it and/or			*
  * modify it under the terms of the GNU General Public License				*
@@ -251,7 +251,7 @@ static int lputs(int level, char *str)
 	printf("\r%*s\r",prompt_len,"");
 	if(str!=NULL) {
 		for(p=str; *p; p++) {
-			if(iscntrl(*p))
+			if(iscntrl((unsigned char)*p))
 				printf("^%c",'@'+*p);
 			else
 				printf("%c",*p);
diff --git a/src/xpdev/genwrap.c b/src/xpdev/genwrap.c
index 5f268d8043e8ad66bc9dd1ce6780708320a8e23c..00df06ddadc2eb5b3174998b15f19e789149c498 100644
--- a/src/xpdev/genwrap.c
+++ b/src/xpdev/genwrap.c
@@ -8,7 +8,7 @@
  * @format.tab-size 4		(Plain Text/Source Code File Header)			*
  * @format.use-tabs true	(see http://www.synchro.net/ptsc_hdr.html)		*
  *																			*
- * Copyright 2008 Rob Swindell - http://www.synchro.net/copyright.html		*
+ * Copyright 2010 Rob Swindell - http://www.synchro.net/copyright.html		*
  *																			*
  * This library is free software; you can redistribute it and/or			*
  * modify it under the terms of the GNU Lesser General Public License		*
@@ -465,7 +465,7 @@ char* DLLCALL truncsp(char* str)
 
 	if(str!=NULL) {
 		i=len=strlen(str);
-		while(i && isspace(str[i-1])) 
+		while(i && isspace((unsigned char)str[i-1])) 
 			i--;
 		if(i!=len)
 			str[i]=0;	/* truncate */