Skip to content
Snippets Groups Projects
Commit 651f1a8a authored by rswindell's avatar rswindell
Browse files

More stupid Microsoft ctype assertion avoidance.

parent 574e7f1a
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
* @format.tab-size 4 (Plain Text/Source Code File Header) *
* @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) *
* *
* Copyright 2011 Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 2013 Rob Swindell - http://www.synchro.net/copyright.html *
* *
* This program is free software; you can redistribute it and/or *
* modify it under the terms of the GNU General Public License *
......@@ -81,7 +81,7 @@ char sbbs_t::putmsg(const char *buf, long mode)
if(str[l+1]=='"' && !(sys_status&SS_NEST_PF)) { /* Quote a file */
l+=2;
i=0;
while(i<(int)sizeof(tmp2)-1 && isprint(str[l]) && str[l]!='\\' && str[l]!='/')
while(i<(int)sizeof(tmp2)-1 && isprint((unsigned char)str[l]) && str[l]!='\\' && str[l]!='/')
tmp2[i++]=str[l++];
tmp2[i]=0;
sys_status|=SS_NEST_PF; /* keep it only one message deep! */
......@@ -101,14 +101,14 @@ char sbbs_t::putmsg(const char *buf, long mode)
l++;
}
else if(cfg.sys_misc&SM_PCBOARD && str[l]=='@' && str[l+1]=='X'
&& isxdigit(str[l+2]) && isxdigit(str[l+3])) {
&& isxdigit((unsigned char)str[l+2]) && isxdigit((unsigned char)str[l+3])) {
sprintf(tmp2,"%.2s",str+l+2);
attr(ahtoul(tmp2));
exatr=1;
l+=4;
}
else if(cfg.sys_misc&SM_WILDCAT && str[l]=='@' && str[l+3]=='@'
&& isxdigit(str[l+1]) && isxdigit(str[l+2])) {
&& isxdigit((unsigned char)str[l+1]) && isxdigit((unsigned char)str[l+2])) {
sprintf(tmp2,"%.2s",str+l+1);
attr(ahtoul(tmp2));
// exatr=1;
......@@ -129,7 +129,7 @@ char sbbs_t::putmsg(const char *buf, long mode)
exatr=1;
l+=3; /* Skip |xx */
}
else if(cfg.sys_misc&SM_CELERITY && str[l]=='|' && isalpha(str[l+1])
else if(cfg.sys_misc&SM_CELERITY && str[l]=='|' && isalpha((unsigned char)str[l+1])
&& !(useron.misc&(RIP|WIP))) {
switch(str[l+1]) {
case 'k':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment