Commit 651f1a8a authored by rswindell's avatar rswindell
Browse files

More stupid Microsoft ctype assertion avoidance.

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