Skip to content
Snippets Groups Projects
Commit 94c53e57 authored by rswindell's avatar rswindell
Browse files

More stupid MS debug-assertion-in-isdigit avoidance.

parent 98e886a9
Branches
Tags
No related merge requests found
......@@ -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 */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment