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
85388f39
Commit
85388f39
authored
Jun 07, 2010
by
rswindell
Browse files
More typecasts to defeat MSVC10 assertions.
parent
beaf2ac2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/sbbs3/str_util.c
src/sbbs3/str_util.c
+2
-2
No files found.
src/sbbs3/str_util.c
View file @
85388f39
...
...
@@ -108,7 +108,7 @@ char* DLLCALL strip_space(const char *str, char* dest)
if
(
dest
==
NULL
&&
(
dest
=
strdup
(
str
))
==
NULL
)
return
NULL
;
for
(
i
=
j
=
0
;
str
[
i
];
i
++
)
if
(
!
isspace
(
str
[
i
]))
if
(
!
isspace
(
(
unsigned
char
)
str
[
i
]))
dest
[
j
++
]
=
str
[
i
];
dest
[
j
]
=
0
;
return
dest
;
...
...
@@ -131,7 +131,7 @@ char* DLLCALL prep_file_desc(const char *str, char* dest)
}
else
if
(
j
&&
str
[
i
]
<=
' '
&&
dest
[
j
-
1
]
==
' '
)
continue
;
else
if
(
i
&&
!
isalnum
(
str
[
i
])
&&
str
[
i
]
==
str
[
i
-
1
])
else
if
(
i
&&
!
isalnum
(
(
unsigned
char
)
str
[
i
])
&&
str
[
i
]
==
str
[
i
-
1
])
continue
;
else
if
((
uchar
)
str
[
i
]
>=
' '
)
dest
[
j
++
]
=
str
[
i
];
...
...
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