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
No related branches found
No related tags found
No related merge requests found
...@@ -178,7 +178,7 @@ int get_word_len(char *buf, int starting_pos) ...@@ -178,7 +178,7 @@ int get_word_len(char *buf, int starting_pos)
return 0; return 0;
if (!buf[starting_pos+pos]) if (!buf[starting_pos+pos])
break; break;
else if (isspace(buf[starting_pos+pos])) else if (isspace((unsigned char)buf[starting_pos+pos]))
break; break;
else if (buf[starting_pos+pos]=='\x1f') else if (buf[starting_pos+pos]=='\x1f')
continue; continue;
...@@ -391,7 +391,7 @@ char* wordwrap(char* inbuf, int len, int oldlen, BOOL handle_quotes) ...@@ -391,7 +391,7 @@ char* wordwrap(char* inbuf, int len, int oldlen, BOOL handle_quotes)
ocol++; ocol++;
icol++; 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 */ /* Find the start of the last word */
k=l; /* Original next char */ k=l; /* Original next char */
l--; /* Move back to the last 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