diff --git a/src/sbbs3/wordwrap.c b/src/sbbs3/wordwrap.c
index 41402514a69f5ec8649585a596b63311cea6a7c4..ab5e804f681e8f4be475ebd1f6d69b939778c140 100644
--- a/src/sbbs3/wordwrap.c
+++ b/src/sbbs3/wordwrap.c
@@ -178,7 +178,7 @@ int get_word_len(char *buf, int starting_pos)
 			return 0;
 		if (!buf[starting_pos+pos])
 			break;
-		else if (isspace(buf[starting_pos+pos]))
+		else if (isspace((unsigned char)buf[starting_pos+pos]))
 			break;
 		else if (buf[starting_pos+pos]=='\x1f')
 			continue;
@@ -391,7 +391,7 @@ char* wordwrap(char* inbuf, int len, int oldlen, BOOL handle_quotes)
 					ocol++;
 					icol++;
 				}
-				if(ocol>len && inbuf[i+1] && !isspace(inbuf[i+1])) {		/* Need to wrap here */
+				if(ocol>len && inbuf[i+1] && !isspace((unsigned char)inbuf[i+1])) {		/* Need to wrap here */
 					/* Find the start of the last word */
 					k=l;									/* Original next char */
 					l--;									/* Move back to the last char */