From 8db54c47ea343eb30b5eedd3979573709511aa38 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Fri, 24 Jul 2015 23:46:42 +0000 Subject: [PATCH] Added stupid typecast to keep the msvc debug builds from asserting when "high ASCII" is passed to the word-wrap function. --- src/sbbs3/wordwrap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sbbs3/wordwrap.c b/src/sbbs3/wordwrap.c index 1c739e4154..50dbf738c2 100644 --- a/src/sbbs3/wordwrap.c +++ b/src/sbbs3/wordwrap.c @@ -211,7 +211,7 @@ static struct section_len get_ws_len(char *buf, int col) for(ret.bytes=0; ; ret.bytes++) { if (!buf[ret.bytes]) break; - if (!isspace(buf[ret.bytes])) + if (!isspace((unsigned char)buf[ret.bytes])) break; if(buf[ret.bytes] == '\t') { ret.len++; -- GitLab