Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Main
Synchronet
Commits
651f1a8a
Commit
651f1a8a
authored
Jul 10, 2013
by
rswindell
Browse files
More stupid Microsoft ctype assertion avoidance.
parent
574e7f1a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/sbbs3/putmsg.cpp
src/sbbs3/putmsg.cpp
+5
-5
No files found.
src/sbbs3/putmsg.cpp
View file @
651f1a8a
...
@@ -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 201
1
Rob Swindell - http://www.synchro.net/copyright.html *
* Copyright 201
3
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'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment