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) ...@@ -516,12 +516,13 @@ size_t sbbs_t::getstr(char *strout, size_t maxlen, long mode)
return(x); return(x);
} }
if(i<maxlen && ch>=' ') { if(i<maxlen && ch>=' ') {
if(mode&K_UPRLWR) if(mode&K_UPRLWR) {
if(!i || (i && (str1[i-1]==' ' || str1[i-1]=='-' if(!i || (i && (str1[i-1]==' ' || str1[i-1]=='-'
|| str1[i-1]=='.' || str1[i-1]=='_'))) || str1[i-1]=='.' || str1[i-1]=='_')))
ch=toupper(ch); ch=toupper(ch);
else else
ch=tolower(ch); ch=tolower(ch);
}
if(console&CON_INSERT && i!=l) { if(console&CON_INSERT && i!=l) {
if(l<maxlen) /* l<maxlen */ if(l<maxlen) /* l<maxlen */
l++; l++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment