Skip to content
Snippets Groups Projects
Commit 8db54c47 authored by rswindell's avatar rswindell
Browse files

Added stupid typecast to keep the msvc debug builds from asserting when

"high ASCII" is passed to the word-wrap function.
parent 1adbd262
Branches
Tags
No related merge requests found
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment