From 682e8c6a65a85c2209f966ed35d44ee55bbc6c66 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Sat, 22 Aug 2015 05:31:41 +0000
Subject: [PATCH] Fix "dangling else" warning.

---
 src/sbbs3/getstr.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/getstr.cpp b/src/sbbs3/getstr.cpp
index afc43a10c2..0e93fdbca7 100644
--- a/src/sbbs3/getstr.cpp
+++ b/src/sbbs3/getstr.cpp
@@ -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++;
-- 
GitLab