Skip to content
Snippets Groups Projects
Commit 682e8c6a authored by deuce's avatar deuce
Browse files

Fix "dangling else" warning.

parent 7b73e2a6
No related branches found
No related tags found
No related merge requests found
......@@ -516,12 +516,13 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
return(x);
}
if(i<maxlen && ch>=' ') {
if(mode&K_UPRLWR)
if(mode&K_UPRLWR) {
if(!i || (i && (str1[i-1]==' ' || str1[i-1]=='-'
|| str1[i-1]=='.' || str1[i-1]=='_')))
ch=toupper(ch);
else
ch=tolower(ch);
}
if(console&CON_INSERT && i!=l) {
if(l<maxlen) /* l<maxlen */
l++;
......
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